Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

There was a problem

You must be a member of this account.

Jack Chu's latest activity

Friday, April 22 2011
6736 Problem with scoped routes and form_for helper was updated in Ruby on Rails
  • Jack Chu
    Jack Chu commented at 7:42 PM

    Oops, I just noticed the API seems to prefer #persisted? to #new_record?, so I guess this works better:

    = form_for @submission, :url => @submission.persisted? ...
  • Jack Chu
    Jack Chu commented at 7:26 PM

    Andrew, thanks for your reply.

    I looked over the guide and that helped me with the proper arguments for form_for, however I can't find a good example of how to ...

  • Jack Chu
    Jack Chu created the ticket at 1:09 AM

    I have a route that looks like this:

      namespace :admin do
        scope ':project_name' do
          resources :submissions
        end
      end
    

    in the application controll...