I do not know why, but it is generating path with one. If instead I use link_to 'destroy', @serie
then / series1 generates
so I had to use it: Link_to 'Destroy', series_path + "/" + @ serie.id.to_s
to get / series / 1
but to submit it is a problem, I It needs to be overridden
My Roots file:
`Newpage :: Application.routes.draw do
Resources: User
Resources : Series
Resources: Series
Resources: Episode
Instrument: Episode
Resources: user_serie
match "login" = & gt; "User # Login"
Match "Logout" = & gt; 'User # logout'
match "signin" = & gt; "User # signin"
post "user / do_login"
match "series / load_account_sarray" => "User_serie # load_other_series"
"Admin" = & gt; "Admin # index"
match 'user /: alias' = & gt; 'Chain # load_user_sarah'
match 'feed /: alias' = & gt; 'User_serie # feed'
Route: to = & gt; 'Chain # main'
termination
This is your problem:
Resources: chain processing: series should be
resources: serie Or
resources: series [edit]
Plus accessories: episodes ... < P> [edit]
This is the original content ... You are receiving this link: /series.1 becouse with this line
resources: series You are telling the train That chain item has only one line, so the id of the object is irrelevant, you should delete this line and leave only
resources: chain Should and should not forget to restart the server after it
Comments
Post a Comment