Displaying 20 results from an estimated 10000 matches similar to: "How dows RoR work?"
2006 Jul 14
6
Don''t understand :: in ActionController::Base
Maybe this should apply to Ruby forums directly, but I''ll try here.
I understand the concept of classes and subclasses thanks to the 
excellent "Programming Ruby - The Pragmatic Programmer''s Guide". 
However, I don''t understand what :: signify in terms of inheritance, 
parent and child in e.g.
ActionController::Base
-- 
Posted via http://www.ruby-forum.com/.
2009 May 26
9
cookies are mandatory for Rails app?
is it true that Rails depend on cookies?  It seems that flash is a part
of session, and session uses cookies... so when i disable cookie in
Firefox, what was working became
ActionController::InvalidAuthenticityToken
so is it true that for a RoR app to work, cookies are mandatory?
-- 
Posted via http://www.ruby-forum.com/.
2006 Jul 07
2
How does layouts work?
When creating a scaffold you get a layout file. How does it work? I 
thought I would find the var @content_for_layout in the controller, but 
I didn''t. Where is layouts defined or controlled?
-- 
Posted via http://www.ruby-forum.com/.
2006 Feb 08
10
Sharing sessions between subdomains?
Hello,
    
   I know how to share sessions between subdomains  in PHP. Can anyone please guide me as to how I can share sessions using  Ruby? Where can I set the value of domain for which the cookie is set?
    
    I would like for a user to login on the home page and then go to blog.home.com and not have to login again.
    
    Any guidance/pointers are appreciated.
    
    Thanks''
 
2006 Jun 27
8
cookies
could someone help me with cookies.
I need help setting them and using them for output and etc.
thanks.
-- 
Posted via http://www.ruby-forum.com/.
2010 Sep 19
4
Rails 2.3.8 - InvalidAuthenticityToken problem. URGENT!
I used to have Simple Captcha installed, but since I removed it I got
all kinds of problems with login.
Processing UsersController#login (for 188.177.122.179 at 2010-09-19
12:21:09) [POST]
  Parameters: {"commit"=>"OK", "authenticity_token"=>"/
Y0aZETCsMhyI3CkrZJK6O2NaLEoi+LRe8ZuDPWU9kc=",
2006 Apr 28
3
persistent cookies
hello,
 I am trying to implement a "remember be" box for logins, however I cant
seem to get it to work.  I have tried the following 2 methods but neither
seem to work.  When i check the expiry time in firefox it always says "end
of session".
 What is the proper way to handle this so the session cookie "_session_id"
doesnt expire for a year?
I tried
2008 Mar 19
7
Upgrade to 2.0.2: InvalidAuthenticityToken error on 1st POST
All,
I''ve upgraded to 2.0.2, and I can''t get my login screen (the first POST
request in the application) to work.
When I post this form, I see the "InvalidAuthenticityToken" error.
I have
  protect_from_forgery :secret => ''my_secret''
set in application.rb
and I am using an active_record session store based on this line in
environment.rb:
 
2006 May 17
3
Session in ActiveRecordStore
The Agile book seems to say I should specify this as follows, probably in the
environments.rb:
 
 
  ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS[:database_manager] =
CGI::Session::ActiveRecordStore
 
BUT the environments.rb file would have me Un-Comment this:
 
 
  config.action_controller.session_store = :active_record_store
 
Anyway, I''ve tried both, and in both cases it
2006 May 08
2
How to set the default language in GetText?
How to set the default language in GetText?
The default language of GetText is en,and I want to change it to another 
language,and also keep the ability to change to any other languages by 
just click the according href.
Currently I use:
class ApplicationController < ActionController::Base
before_filter :set_charset
  def set_charset
    @headers["Content-Type"] = "text/html;
2006 May 27
5
Rails without cookies
Why does rails keep installing cookies on users machines, even if I am
not ussing th session variable for anything?
How do I stop this?
Thanks, Scott
-- 
Easily help charity when you shop: www.GiveTeam.org
I''m a member of the Give Team, are you?
2006 Jul 12
5
File manipulation
What are the possibilities of file manipulation in RoR? How do you 
create a .html or .rhtml file with ruby to be placed in the public 
folder, with custom content?
Btw, where is RoR root? Is that ''public''?
-- 
Posted via http://www.ruby-forum.com/.
2008 Jun 19
5
How do you create one session cookie for multiple subdomains
I am using the restful authentication plugin and am always prompted to
login if a different subdomain is accessed.  I have found a couple rails
"solutions", but none of them seem to work:
# development.rb
1.  ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS[:session_key]
= ".localhost"
2.  ActionController::Base.session_options[:key] = ".localhost"
Does anyone
2006 Jun 07
1
What is class TestController < ActionController::Base
What are the different parts of; class TestController < 
ActionController::Base?
I look at the http://api.rubyonrails.org/ and try to understand but I 
don''t. Could someone give me a hint?
I get the part of Test being the "folder", def and all that, but I can''t 
find an explanation of the basic stuff.
-- 
Posted via http://www.ruby-forum.com/.
2009 May 20
1
Problem on rack_setup
I''m having problems trying to set up facebooker on a Rails 2.3.2
project using :active_record_store for cookies. The problem happens
because of this commit:
http://github.com/mmangino/facebooker/commit/308770447db06433e505aaf27db2614cee213cc2
That code is trying to add the Rack::Facebook to the dispatch chain
after ActionController::RewindableInput or
2006 Feb 11
2
Session ID in a cookie?
I''ve been looking around for how to store the session ID in a cookie. 
The "Agile Web Development with Rails" books seems to indicate that this 
is done by default with Rails.  But I don''t see a cookie being set in my 
browser.  (yeah, they''re enabled)
I poked through the RForum code to find something referencing "cookies" 
but nothing came up.
Does
2009 Jul 02
2
Big help with shared subdomains cookies
Hi, i need that all the subdomains of an app (using subdomain_fu) use
''.domain.com'' as domain for all cookies.
I''ve set ActionController::Base.session_options[:domain] = ''.domain.com''
and it works...for just the session... how can i set this also for
common cookies ? (created with cookies[:name] = {:value => value,
:expires => 6.months.from_now} )
2006 Jul 03
3
Sharing Session Between Two Applications
Hi
 
We have a rails application deployed and working fine. Along with this, we are planning to add "Opinion" forum. The url of the forum will be like http://forum.mymainsite.com Is it possible to share the session (that is, if the user is already logged in on the main site, he need not log in again on the forum section).
 
Is it possible to add the ''opinion''  as a
2010 Feb 22
4
"the change you want was rejected. Maybe you changed something you didn't have access to.""
Anyone ever get an error message such as this?
"the change you want was rejected.  Maybe you  changed something you
didn''t have access to.""
I haven''t been able to see this in testing, but I''m getting reports
out on the field from a few users trying to register to one of my
websites.
-S
-- 
You received this message because you are subscribed to the
2012 Jul 23
4
uninitialized constant ActionController::Flash::FlashHash [NameError])
My application, a very simple general ledger, that worked very well until 
June 26 does not work any longer. It is used under Ubuntu 12.04 and I 
believe there was a Ruby update after that.
What happens?
When I try to start the appIication I get the following output in my web 
browser:
ActionDispatch::Session::SessionRestoreError 
Session contains objects whose class definition isn''t