I am new to rails but have been able to cobble together a pretty decent
storefront and taken it live.  However, creating a lot of false
sessions.  Tried to implement a check for user_agent.  The problem is
that when I issue a "session :off", I''m receiving a
"wrong number of
arguments (1 for 0)".  Turning the session off under the application.rb
works fine but as soon as I try to move it to an action within the
controller it errors as in
--------------
  def cookies_required
    session :off
    return unless request.cookies["_session_id"].to_s.blank?
    session[:return_to] = request.request_uri
    redirect_to(:controller => "store", :action =>
"cookies_test")
    return false
  end
---------------
Any suggestions would be appreciated.
Bud
-- 
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---