[Rails] Symbols not recognized after nesting routes - NoMethodError in Timesheets#new

2011-01-27 Thread Smashing
For some reason The symbols in my new timesheet form aren't being recognized after I nested the routes. I go to: http://localhost:3000/users/1/timesheets/new and receive the error: NoMethodError in Timesheets#new Showing */Rails/timecard/app/views/timesheets/new.html.erb* where line *#8*

Re: [Rails] Symbols not recognized after nesting routes - NoMethodError in Timesheets#new

2011-01-27 Thread Smashing
%= form_for( [@timesheet.user, @timesheet] ) do |f| % Thank you, you've been a HUGE help, just missed where it said it needed to be an array. I'll be more thorough next time I'm reading the api docs :) -- You received this message because you are subscribed to the Google Groups Ruby on Rails:

[Rails] Re: send_file Rails3, Ruby 1.9.2

2010-10-18 Thread Smashing
/tr % end % On Oct 4, 1:42 pm, Smashing matt.lengenfel...@gmail.com wrote: I'm perty new to rails and I have an app where I want to have secure file downloads, so I can't just drop the files in public/data, I need to use send_file. I found the post (pasted at bottom) that explained how to do

[Rails] Re: send_file Rails3, Ruby 1.9.2

2010-10-05 Thread Smashing
create a new download action? or perhaps even more generally does someone know of a good guide that explains routing? I thought having resources :datafiles in my routes.rb file was enough and rails would just detect any new actions automatically. On Oct 4, 1:42 pm, Smashing matt.lengenfel

[Rails] Re: send_file Rails3, Ruby 1.9.2

2010-10-05 Thread Smashing
://guides.rubyonrails.org/routing.html Luke On 2010-10-04, at 11:42 AM, Smashing wrote: I'm perty new to rails and I have an app where I want to have secure file downloads, so I can't just drop the files in public/data, I need to use send_file. I found the post (pasted at bottom

[Rails] send_file Rails3, Ruby 1.9.2

2010-10-04 Thread Smashing
I'm perty new to rails and I have an app where I want to have secure file downloads, so I can't just drop the files in public/data, I need to use send_file. I found the post (pasted at bottom) that explained how to do this. When I go to implement it, I wanted to try the simplest thing first, so I