Greetings Rubyists!
I'm seeking developers for an Open Source, Ruby on Rails, Business
Management System (Customer Relations, Document Management, Accounting,
etc.) that I've been developing for the last year or so. The groundwork has
been laid and it's already a fairly functional application, but
According to the wiki..
https://github.com/ryanb/cancan/wiki/Checking-Abilities
I think you may need to change the object that can? is evaluating from the
@user variable to the class User like so:
<% if can? :create, User %>
<%= link_to 'New User',
new_user_path
%>
<% end %>
On Thu, Dec 2, 20
What message are you getting?
On Thu, Dec 2, 2010 at 9:28 AM, Leonel *.* wrote:
> So I got CanCan and Devise working well. I have two types of users:
> Admins and Nonadmins. Admins can edit all of Nonadmins profiles.
>
> The problem is, every user (either Admin or Nonadmin) belongs to an
> Accou
This is a pretty cool system.. I wonder if it would be possible to integrate
with Bug/Issues from other other systems.. Maybe, make an API that would let
me connect my own Bug Tracking system to this system?
Some really cool ideas here (not necessarily original, but that doesn't
matter.. you don't
I recommend watching this Railscast (
http://railscasts.com/episodes/202-active-record-queries-in-rails-3).. It
helped me get a handle on AR 3's new query concept.
On Fri, Oct 8, 2010 at 1:57 PM, Christian Fazzini <
christian.fazz...@gmail.com> wrote:
> The following SQL:
>
> select * from media
Anyone know how to successfully use ActionView helpers (link_to,
contacts_path, contact_path(contact)) in a module included in the /lib
directory?
Every time i attempt this by including the helper (include
ActionView::Helpers::UrlHelper, etc) i get a Stack Trace too Deep error.
--
__
Ware player?
>
> On Jul 22, 6:43 pm, Joshua Martin wrote:
> > This is a VMWare image... You need the free VMWare Player...
> >
> >
> >
> > On Thu, Jul 22, 2010 at 9:32 PM, Rich d wrote:
> > > i just downloaded virtual rails1.1.vdi I need to know what softwa
This is a VMWare image... You need the free VMWare Player...
On Thu, Jul 22, 2010 at 9:32 PM, Rich d wrote:
> i just downloaded virtual rails1.1.vdi I need to know what software
> or zip extracter do I need to open it...it took me nearly five hours
> to download this program gz!!!
>
> --
You might also try using TorqueBox (JRuby) on BSD...
On Thu, Jul 8, 2010 at 12:17 PM, Mrbass21 wrote:
> I had this problem too. After searching all day I found a solution.
>
> On BSD you need to have a converter installed.
>
> /usr/ports/converters/ruby-iconv/
>
> sudo make install clean
>
> Ho
Did you first install the wkhtmltopdf utility? it's not installed
automatically as part of the plugin because it's platform-specific...
http://code.google.com/p/wkhtmltopdf/
On Fri, Jun 18, 2010 at 11:19 AM, Rails Learner wrote:
> Hi Everybody,
>
> I am using wicked_pdf plugin and having a hard
I was also going to suggest wkthml2pdf... but in the easy to use form of a
plugin called wicked_pdf...
See this tutorial..
http://snikt.net/index.php/2010/03/03/generating-pdfs-from-ruby-on-rails
On Thu, Jun 17, 2010 at 11:09 AM, Ivan Nastyukhin wrote:
> hi
> look to wkhtml2pdf
>
> Ivan Nastyu
For anyone still interested, I found that I can use ENV['JBOSS_HOME'] on
JRuby; haven't checked if it works on C Ruby, but I would guess it does.
On Mon, May 24, 2010 at 2:13 PM, Joshua Martin wrote:
> Does anyone know how I can get a system variable like JAVA_HOME or
> J
Does anyone know how I can get a system variable like JAVA_HOME or
JBOSS_HOME from within Rails/Ruby?
--
_
Joshua S. Martin
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send ema
Does anyone have any suggestions about building a plugin architecture for a
Rails application?
This would be different from the Rails plugin architecture; this would be
plugins for my Rails application in particular (i.e. like Firefox
extensions, or OpenOffice extensions)
--
uestion is, how would I make an SQL or CSV export
(within Rails) of only certain data in the database (the key here being only
certain data) ?
On Tue, May 18, 2010 at 1:38 PM, Marnen Laibow-Koser
wrote:
> Joshua Martin wrote:
> > I'm building an application in which I'd
I'm building an application in which I'd like groups of users to have their
own dedicated MySQL/SQLite database for the application.
How can I configure Rails so that ActiveRecord uses that group's dedicated
database from the start?
--
_
Joshua S. Martin
--
You
Funny you should ask... I'm currently working on an open source business
management (CRM, document management, accounting) application built on Ruby
on Rails. It's called Journey Business Management. Expecting a release
within the next month or so with basic functionality.
Inquire if you'd like to
What exactly are you trying to do with this?
On Fri, May 14, 2010 at 2:24 PM, Viorel wrote:
> I have something like this:
> for xx in '01'..'09'
> field_name='field'+xx
> puts ModelName.field_name
> end
>
> My problem is that ModelName has no field named field_name, it have
> fields like fiel
at 9:25 AM, Colin Law wrote:
> On 14 May 2010 14:08, Joshua Martin wrote:
> > You might need to keep that nickel Bill (:
> >
> > I've removed all the :size elements from the form and validated the page
> > XHTML strict using W3C's validator.
> >
> &g
ason. On a
related note, I have a drop down and it's value IS set to the object's
attribute.
On Fri, May 14, 2010 at 4:04 AM, clanlaw wrote:
> On 14 May 2010 02:22, Joshua Martin wrote:
> > I'm using this form in an edit page to update a person. For some weird
> &
I'm using this form in an edit page to update a person. For some weird
reason, when I view this form in the browser... The text field's value is
set to the person's firstname, but it does not display in the browser.
The form works perfectly on Windows (the values are visible in the browser),
but n
omagically?
On Thu, May 6, 2010 at 2:37 PM, Joe Smith wrote:
>
> Joshua Martin wrote:
>
>> Also, you should put return li at the end; you
>> don't have to, but it just makes the code easier to read.
>>
>
> Oddly most ruby style guides I've seen disagr
I don't know for sure because I haven't encountered a situation where I'd
need to do things like this... But I'll give it a shot - I'm open to
corrections..
class LineItem < ActiveRecord::Base
belongs_to :order
belongs_to :product
def self.from_cart_item(cart_item)
li = ne
Ah, I see. Thanks!
On Tue, Apr 27, 2010 at 4:20 PM, Frederick Cheung <
frederick.che...@gmail.com> wrote:
>
>
> On Apr 27, 9:07 pm, Joshua Martin wrote:
> > I have a datetime field in the database. How do I find records for a
> > particular date regardless of the tim
I have a datetime field in the database. How do I find records for a
particular date regardless of the time of day?
The method I'm trying does not work.. tasks.find(:all, :conditions => ["date
== ?", Date.today])
--
_
Joshua S. Martin
CONFIDENTIALITY NOTE: This
You're using PostgreSQL on Ubuntu, right?
On Sat, Apr 24, 2010 at 9:27 AM, Marnen Laibow-Koser
wrote:
> cootcraig wrote:
> > Help please. My first attempt at Rails, I'm trying to use PostgreSQL
> > and I'm seeing this error. I'm also new to PostgreSQL, but the
> > default encoding in PostgreSQ
http://developer.yahoo.com/auth/
On Fri, Apr 23, 2010 at 2:38 PM, kevid wrote:
> hi all,
>
> Is there a way to login to yahoo programatically from my controller?
> thus the user (WITHOUT SEEING THE YAHOO LOGIN PAGE) would just be
> logged into yahoo having provided username and password ?
y because jQuery is
>>> Javascript running in the browser and @phone_number_categories is Ruby
>>> running on the server. If you want to do all this on the client side then
>>> you can save the categories into a Javascript variable that is in scope with
>>> the
I may be asking a very dumb question, but I thought it'd be worth the
asking..
I'm using JQuery to dynamically create some form fields for entering phone
numbers... Basically just two fields.. One for the number, and a select
field so that the user can choose whether it's a Home/Work/etc. number.
I think you can look at Exchange Web Services in the 2010 version..
http://msdn.microsoft.com/en-us/library/bb204119.aspx
Another person is in the processing of building an Exchange/Ruby library..
http://github.com/zenchild/Viewpoint
On Thu, Apr 8, 2010 at 10:58 AM, Dani Dani wrote:
> Hi, is t
e the field's content, but not edit it.
On Mar 20, 9:02 pm, Hassan Schroeder
wrote:
> On Sat, Mar 20, 2010 at 11:52 AM, Joshua Martin wrote:
> > The text_field should be disabled so that the user can't put it a
> > random date without regard to the terms or invoice date.
Can you not use an <%= image_tag("DownArrow.jpg") %> ?
On Mar 20, 2:29 pm, RichardOnRails
wrote:
> Hi,
>
> I've got a public\images\DownArrow.jpg
> and app\views\expenses\new.html.erb that want to present this image in
> the following context:
>
>
> <%= f.label :vendor %>
> <%= f.text_
I have a text_field that stores an invoice due date. It's value is
updated by JQuery when the user specifies the terms of the invoice.
So, the value would become the Invoice Date + Terms.
The text_field should be disabled so that the user can't put it a
random date without regard to the terms or i
33 matches
Mail list logo