Displaying 1 result from an estimated 1 matches for "resolucion_pag".
Did you mean:
resolucion_pages
2006 Apr 11
2
saving controller state
...39;'
@order = params[:order] if params[:order]
end
And then I have another method to save the data
def save
session[:order] = @order
end
The problem is that for every method I have to execute "load" do some
stuff and then execute "save"
like this
def list
load
@resolucion_pages, @resoluciones = paginate :resolucion, :order =>
@order, :per_page => 10
save
end
Is there some way to automatize this?
I tried with the initialize method, but it seems like the session is not
available on that method.
Saludos
Sas
--
Posted via http://www.ruby-forum.com/.