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.

lic (at crd)'s latest activity

Thursday, February 10 2011
6397 Routing when member name is update was updated in Ruby on Rails
  • lic (at crd)
    lic (at crd) commented at 2:51 PM

    I made it work in rspec I guess the issue was calling the wrong assertion method.

    describe "Routes" do
      it "should route update profile from Flash" do
        {:p...
  • lic (at crd)
    lic (at crd) commented at 11:24 AM

    Could it be a bug in ActionDispatch::Assertions::RoutingAssertions ?

  • lic (at crd)
    lic (at crd) commented at 10:53 AM

    Weird thing...

    rake routes | grep profile
    
    api_profile_sessions POST   /api/profile_sessions(.:format)    {:action=>"create", :controller=>"api/profile_session...
  • lic (at crd)
    lic (at crd) commented at 10:40 AM

    Superb!
    I didn't know that the :path option could override inbuilt defaults!
    That's perfect!

    Thank you for helping out! I own you a beer!

  • lic (at crd)
    lic (at crd) commented at 9:59 AM

    Yeps that is a possibility. We can also do this in the route

    namespace :api do
      resources :profiles, :only => [:show, :create]
      match '/profiles/:id/update(....
1 earlier change…
  • lic (at crd)
    lic (at crd) commented at 9:01 AM

    Sorry Andrew but I can't pass a _method=put. My payload is XML or JSON.

Wednesday, February 09 2011
6397 Routing when member name is update was updated in Ruby on Rails
  • lic (at crd)
    lic (at crd) commented at 1:26 PM

    So far I have fixed with a workaround

    namespace :api do
      resources :profiles, :only => [:show, :create]
    end
    match '/api/profiles/:id/update(.:format)' => 'pro...
  • lic (at crd)
    lic (at crd) created the ticket at 1:19 PM

    Hi I have a weird situation with routing and member
    Looks like that

    post 'update', :on => :member
    

    misbehaves.

    LONG STORY: I need to integrate a backend to Ado...