Rails 4 routing error for hash_for*(hash_for_path_name) -


i migrating application rails 2.3.18 rails 4.0.0. application works fine till rails 3.2.21. when migrate rails 3.2.21 rails 4.0.0 gives me error hash_for* helper.

i got error:

undefined method `hash_for_home_status_path' #<#<class:0xb636bb0c>:0xb636b0a8> 

i found below method in https://github.com/rails/rails/blob/3-2-stable/actionpack/lib/action_dispatch/routing/route_set.rb not available in rails 4 stable.

def hash_access_name(name, kind = :url)    :"hash_for_#{name}_#{kind}" end 

is there patch removal or replacement pass options hash in rails 4? in advance

review rails routing outside in. you'll need update of view files (removing hash_for_* , replacing link_to or method).


Comments

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -