Frederick Cheung wrote:
> On Jul 22, 10:05�pm, Tyler Knappe <rails-mailing-l...@andreas-s.net>
> wrote:
> 
>>
>> The problem here is when accessing @devices_array in the view
>> @devices_array is nil. �I *know* the code is being executed in
>> initialize_devices because if I don't redirect to show_all_devices I can
>> manipulate the @devices_array within the initialize_devices view.
>> However, accessing AllDevicesController.all_devices in show_all_devices
>> results in nil.
>>
>> Anyone know why?
> 
> because in development mode your source code is reloaded between
> requests (ie it is no longer the same AllDevicesController class).
> 
> Fred

This was exactly the problem I was experiencing.

Thanks Fred!
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to