You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rubyonra...@googlegroups.com
I've got problems with an instance variable in a controller.
the varible is initialized and has some entries which i give out in
the
second view(create). but in the third view (export) I become back this
message:
...............ActionView::Template::Error (undefined method `length'
for nil:NilClass):
1: <%=@month_issues.class%>
2: <%=@month_issues.length%>
3: <%@month_issues.each do |mi|%>
4: <%= mi.text %>
5: <%end%>
plugins/abrechnung/app/views/abrechnung/export.html.erb:2:in
`_plugins_abrechnung_app_views_abrech
nung_export_html_erb___625827306_55588872'.............
But in abrechnung_controller the vaiable is initialised as Array with
some antries, how it can be nil?
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rubyonra...@googlegroups.com, Daniel Ritter
On Nov 5, 2014, at 8:10 AM, Daniel Ritter <li...@ruby-forum.com> wrote:
>
> I've got problems with an instance variable in a controller.
> the varible is initialized and has some entries which i give out in
> the
> second view(create). but in the third view (export) I become back this
> message:
You realize instance variables are not carried forward from one action to another? They have to be set up on each request.