Re: [Rails] route helpers are not working

2011-03-30 Thread David J . Hamilton
Excerpts from David J. Hamilton's message of Wed Mar 30 09:22:01 -0700 2011: > This rather surprised me, since I had the same expectations as you. Further > investigation suggestions inflections are to blame. suggestions → suggests. -- med vänlig hälsning David J. Hamilton -- Y

Re: [Rails] route helpers are not working

2011-03-30 Thread David J . Hamilton
format) {:action=>"new", :controller=>"cores"} edit_core GET/cores/:id/edit(.:format) {:action=>"edit", :controller=>"cores"} core GET/cores/:id(.:format) {:action=>"show", :controller=>"cores&quo

Re: [Rails] Re: Routing issue

2011-03-21 Thread David J . Hamilton
x27;t guarantee the how the collision is resolved. OTOH there's a lot of ugliness in having to specify each route manually. Unless someone else on the list has a better suggestion than the one I offered, you may have to simply pick your poison. -- med vänlig hälsning David J. Hamilton

Re: [Rails] Re: Routing issue

2011-03-21 Thread David J . Hamilton
tion with this approach. Is > there a better way to do this? # config/routes.rb resources :artists, :path => 'ackord' do resources :songs, :path => '' end # rake routes … artist_song GET/ackord/:artist_id/:id(.:format) {:action=>"show", :

Re: [Rails] Rails 3 routing problem

2011-03-08 Thread David J . Hamilton
Excerpts from Leonardo Mateo's message of Tue Feb 22 17:12:06 -0800 2011: > On Mon, Feb 21, 2011 at 2:15 PM, David J. Hamilton wrote: > > Excerpts from Phil Crissman's message of Sun Feb 20 15:14:45 -0800 2011: > >> > Started POST "/items/28/price" f

Re: [Rails] Displaying git branch in the bash prompt - Ubuntu

2011-02-28 Thread David J . Hamilton
/2009/02/02/bedazzle-your-bash-prompt-with-git-info/ > > Would any of you happen to know how to do this? The above tries to run git-symbolic-ref. On Ubuntu you'd want git symbolic-ref (i.e. without the first -). -- med vänlig hälsning David J. Hamilton -- You received this messa

Re: [Rails] Rails 3 routing problem

2011-02-21 Thread David J . Hamilton
s route listed when you do `rake routes | grep price` ? Second check: Confirm that your form really does have method=POST. -- med vänlig hälsning David J. Hamilton -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this gr

Re: [Rails] Re: Best practice organization of rails directories

2010-10-18 Thread David J. Hamilton
ically updates ActiveSupport::Dependencies.autoload_paths -- med vänlig hälsning David J. Hamilton -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubs

Re: [Rails] params function not working

2010-10-13 Thread David J. Hamilton
always be the first character, you can do something like var order_value = order_value.indexOf( '-' ) > -1 ? order_value.substring( 1 ) : '-' + order_value -- med vänlig hälsning David J. Hamilton -- You received this message because you are subscribed to t

Re: [Rails] Re: Strange problem with "each"

2010-08-25 Thread David J. Hamilton
unless @user.jobs == nil %> <% @user.jobs each do |job| %> <%= job.Title %> <% end %> <% end %> You want `...@user.jobs.each` not `...@user.jobs each`. Note the missing dot between "jobs" and "each". -- med vänlig hä

Re: [Rails] Subclassing a model

2010-08-19 Thread David J. Hamilton
On Thu, Aug 19, 2010 at 8:05 AM, Fritz Trapper wrote: > Is it possible to define a subclass for a model, that defines additional > data columns, which are stored in a separate table? What you are describing is "Multiple Table Inheritance". I don't think stock rails handles this. Rails supports