ActionController::SessionRestoreError

Hiiiiiii

created new application from old application copy of that the old
application is running but new application is not running fine ,

please help its urgent…

ActionController::SessionRestoreError in Content_masters#index

Showing app/views/content_masters/index.html.erb where line #77
raised:

Session contains objects whose class definition isn’t available.
Remember to require the classes for all objects kept in the session.
(Original exception: #{const_error.message} [#{const_error.class}])

thanks

rahul

ActionController::SessionRestoreError in Content_masters#index

Showing app/views/content_masters/index.html.erb where line #77
raised:

Session contains objects whose class definition isn’t available.
Remember to require the classes for all objects kept in the session.
(Original exception: #{const_error.message} [#{const_error.class}])

Extracted source (around line #77):

74:
75:

 <%= link_to
‘Show’,
:controller=>“content_masters”,:action=>“show”,:id=>content_master.id
%>
76:  <%= link_to ‘Edit’,
edit_content_master_path(content_master) %>
77:  <%= link_to ‘Destroy’, content_master, :confirm =>
‘Are you sure?’, :method => :delete %>
78:
79: <%
80:
@dd=ContentMaster.find(:all,:conditions=>“parent_id=#{content_master.id}”)

On Apr 10, 11:32 am, Rahul M. [email protected] wrote:

ActionController::SessionRestoreError in Content_masters#index

Showing app/views/content_masters/index.html.erb where line #77
raised:

Session contains objects whose class definition isn't available.
Remember to require the classes for all objects kept in the session.
(Original exception: #{const_error.message} [#{const_error.class}])

It’s pretty much what it says - Something is stored in the session
that Rails can’t pull out because it can’t find the corresponding
class. What have you been putting in the session (and as a general
rule it’s good practice to keep to fairly simple data in the session
(arrays, hashes, strings, numbers etc.)

Fred

i havent used session , is it due to plugins i have used and not
installed in new app.
for that what i need to do…

On Apr 10, 3:40 pm, Frederick C. [email protected]

it is giving this error where
<%=flash[:message]%>

flash message is given

pls help…

Thanks Fred My problem is solved by clearing history of browser.

thanks

rahul

On Sat, Apr 10, 2010 at 5:16 PM, Frederick C. <

On Apr 10, 12:01 pm, Rahul M. [email protected] wrote:

i havent used session , is it due to plugins i have used and not
installed in new app.
for that what i need to do…

Well you need to figure out what those plugins are doing. If you
restart your browser and the problem goes away then the problem was
just that when the session was created one of these plugins was
putting stuff in it (although this does highlight the danger of
storing that kind of stuff in the session). If not then keep digging -
you should always understand what the plugins you use are doing!

Fred