:URL Problem

I have a Problem with :url i have the following code:

:url => { :controller => :singlereceipts, :action => :update, :id =>
sr.id }

and the generated URL looks like this:

if i change :controller to “singlereceipts/update”, the URL changes to:

and if i add :action => :update to the long controller, the URL changes

I dont have a clue whats going on, i hope you can help me.



This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs