I'd think, the difference in following example shows easier, where is the
difference in you case, too
foo = [1,2]
bar= foo.dup
foo 3
puts bar.inspect
foo= [ [1,2] ]
bar = foo.dup
foo[0] 3
puts bar.inspect
Try it with clone - and you recognize the difference between deep copy
clone and
I would think, @user_comment is nil. Could you attach your controller,
too?
On 28.01.2011, at 03:43, David G. wrote:
Thanks. Same results. So I am also attaching the
user_comments\new.html.erb file. Show of User should let you
create a
new comment.
ActionView::Template::Error
Perhaps I just have never seen your kind of defining form_for. But I
had expected something like:
%= form_for(@timesheet, :url =
user_timesheets_path(@timesheet.user)) do |f| %
div class=field
%= f.label :user_id %br /
%= f.text_field :user_id %
/div
div class=field
%=
3 matches
Mail list logo