Migrating Routes to Rails 4 -


I have 4 applications for Rail Rail 4 applications.

There are some additional routes on my resuscence that make some problems: I get an error message for this line in my root file:

  Resources: teams. Receive 'applicable' = & gt; 'Teams # application-mail membership', such as: apply_membership post 'apply' = & gt; 'Teams apply to #', such as: apply_membership ...   

This is an error message generated

  You have two routes with the same name Can be defined by using the `: As` option, or you can override the path defined by a resource with the same naming. For the latter, you can restrict the routes created with `resources' as explained here: http://guides.rubyonrails.org/routing.html#restricting-the-routes-created   

In Rail 3, it was possible to obtain and define post routes using a single surname and routing them for different controller methods.

Can I do it in Rail 4 also? And if so, how should I look in my root file?

You can not take the root name with the same name but if you have done it, please replace < / P>

  get 'applied' = & gt; 'Teams # application-mail membership', such as: apply_membership post 'apply' = & gt; 'Team # apply_membership_save', as is: :: update_membership   

Take a look here for rail routing.

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -