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*
%= 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:
/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
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
://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
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
6 matches
Mail list logo