Re: [Rails] undefined method Rails 4

2013-10-23 Thread Fahad Idrees
Just as a first impression, without looking into it in detail - you may have trouble using routes as a class name, it's already a class name under ActionDispatch. However, I think your problem is actually your route: match '/load_data', to: 'routes#new', via: 'get' This isn't a resource route, it

Re: [Rails] undefined method Rails 4

2013-10-23 Thread BalaRaju Vankala
Routes match '/load_data', to: 'routes#new', via: 'get' I think the problem in your routes file. Remove this line "*match '/load_data', to: 'routes#new', via: 'get*' " and add this line-*"resources :routes" *. On Wed, Oct 23, 2013 at 1:33 AM, Jose Urquidi wrote: > Good Day, i'm having a

[Rails] undefined method Rails 4

2013-10-22 Thread Jose Urquidi
Good Day, i'm having a trouble with the routes in Ruby on Rails 4 Error: undefined method `routes_path' View: Load data <%= form_for @route, :html => { :multipart => true } do %> <%= hidden_field_tag 'current_user', @current_user %> <%= file_field_tag :file %>