My path helpers (like data_path, users_path) are now translating itself to use '.' instead of '/'.
For example, data_path(@data) translates to:
data.%23<datareport:0x7fcaba0c2970>
instead of '/data/id'.
My routes look like:
map.resources :data
My path helpers (like data_path, users_path) are now translating itself to use '.' instead of '/'.
For example, data_path(@data) translates to:
data.%23<datareport:0x7fcaba0c2970>
instead of '/data/id'.
My routes look like:
map.resources :data
I believe the resources must be in plural form. As far as i see, in rails, 'data'.pluralize is 'datas'. You may also check out this: http://stackoverflow.com/questions/847491/ruby-on-rails-path-helpers
@cristian is right. If you are using :data instead of :datas then you should define your route to be map.resource :data
But the plural form is map.resources :datas