Displaying 20 results from an estimated 30000 matches similar to: "Flash keeping forever when using ActiveRecordStore"
2005 Aug 06
2
Problem with 0.13.1 ActiveRecordStore with PG 8.0.3.
Hi,
I put the following in my environment.rb file:
ActionController::CgiRequest::DEFAULT_SESSION_OPTIONS.update
(:database_manager => CGI::Session::ActiveRecordStore)
Runnning WEBrick via "script/server" and trying to load any page
served by a controller results in an error like the following:
#<ActiveRecord::StatementInvalid: ERROR: null value in column "id"
2008 Mar 07
0
ActiveRecordStore: cleanup & avoiding duplication
Hi,
I''m using ActiveRecordStore to track user sessions.
I''ve used as a base the next sources:
- http://blog.levicole.com/articles/category/ror
- http://matt-beedle.com/2006/12/13/rails-how-to-find-out-who-is-online/
- http://www.williambharding.com/blog/?p=99
This is what I currently do:
IN SESSION CONTROLLER
def create
self.current_user = User.authenticate(params[:login],
2006 Nov 04
0
Session::ActiveRecordStore
Hi,
I''m trying to use the ACtiveRecordStore option to
accelerate the respone time, since I will a hugo
object stored inside the session object. Everything
works fine, however, I want to know if the "sessions"
table must be set on the default database like pro.
test, dev. Or Can I tell rails for the sessions table
you should look at "This" database, instead of the
2006 Jun 09
0
How to specify database for ActiveRecordStore?
Hi,
Is there a way to specify which database to use (other than the default)
for storing sessions via ActiveRecordStore?
I have a replication setup in MySQL with my application set to read from
the slave db, and don''t want the sessions to be written there.
thanks.
-michael
--
Posted via http://www.ruby-forum.com/.
2005 Jan 19
1
Problem with ActiveRecordStore
I''m having an issue using the ActiveRecordStore for sessions with Rails 0.9.4.1.
When I setup the session object during login I get the following stack trace:
IndexError in Login#auth
string not matched
/app/controllers/login_controller.rb:26:in `auth''
gems/gems/actionpack-1.3.1/lib/action_controller/base.rb:596:in `send''
2005 Sep 09
0
ActiveRecordStore session.id
Hi,
I am using ActiveRecordStore for my sessions. I have another model
called PageView that stores a record each time a page is viewed
(page_id, session_id). In order to implement this, however, I need to
be able to access the session''s primary ''id'' value, the integer, not
the long encoded ''session_key''. My problem is that I can''t access
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
2008 May 21
2
Replacing ActiveRecordStore::Session with a custom model
Has anyone managed to replace ActiveRecordStore::Session with their
own model?
In the source (http://dev.rubyonrails.org/browser/trunk/actionpack/lib/
action_controller/session/active_record_store.rb) it says you can
override the default by setting
CGI::Session::ActiveRecordStore.session_class = MySessionClass
I have tried doing this in a number of ways but I get all kinds of
weird errors, as
2006 Oct 29
1
ActiveRecordStore: Where is the session id generated?
Where can I find the algorithm that generates the session ids for the
ActiveRecordStore (sql session)?
Thanks,
Shimon Amit
--~--~---------~--~----~------------~-------~--~----~
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
2006 Jul 13
2
application always unresponsive overnight
Hi,
I set up my application on Linux (Suse), running MySQL (which sits on a
different server) and Webrick. It works fine. However, every morning
when I come back to my desk, the application gets unresponsive. If I
simply access http://host:3000 <http://host:3000/> I can see the rails
greeting page (that means Webrick is running fine right?), but if I
access any of pages in the
2006 Aug 04
1
file_column issues on dreamhost
ok, here''s the deal. I''m having an issue using the file_column plugin on
dreamhost. Everything works great on my local dev machine using
webrick. On dreamhost i have no errors, but initially the uploaded
images where stored in /public/user/...etc... When the image should have
displayed I just got the filename instead.
I though it might be a routing issue, so I tweaked the
2005 Dec 23
1
FastCGI and large file uploads
I use dreamhost for my hosting provider, and I am working on app where
it requires large files (max 10 MB) to be uploaded to the server. As
of right now the fastcgi processes are configured with:
FastCgiConfig -autoUpdate -initial-env RAILS_ENV=production \
-idle-timeout 120 -maxClassProcesses 5 -killInterval 300
My problem is that I try and upload a file via the web that is around
5 MB
2005 Apr 07
0
Problem with rails on windows using sessions, any help?
Hi, I''m a new rails/ruby user and am having troubles with sessions
under windows. Maybe someone can help me? Env:
Webrick,WindowsXPPro,MySQL
Whenever I try to put an item in the session, and then retrieve it on
a future page load, the item is nil. Somehow it is not persisting the
session items after the request. I looked at the session files and
there are hundreds of them, I thought that
2023 May 05
0
Calls running forever / CDRs inaccurate
Hi list!
Running Asterisk 20.0.0 on CentOS 7, logging CDRs using
cdr_adaptive_odbc to mariadb-server-5.5.68 (via
mariadb-connector-odbc-3.1.7-ga-rhel7)
Using chan_sip.
I'm facing the problem when there is a sudden spike of calls, some of
the calls that are being made during those spikes hang forever
basically. This looks like this:
[root at voip]# asterisk -rx 'core show channels
2007 Jun 08
0
problem with rake db:sessions:clear and session_table_name
The comments in:
actionpack/lib/action_controller/session/activerecord_store.rb
document this method for changing the session table_name:
# You may configure the table name, primary key, and data column.
# For example, at the end of config/environment.rb:
# CGI::Session::ActiveRecordStore::Session.table_name =
''legacy_session_table''
#
2006 Aug 16
5
Dreamhost FastCGI: incomplete headers (0 bytes) errors
Sorry to trouble the list with another Dreamhost problem, but looking
through the archives I see nothing that can solve my problem.
I have installed my app as per
http://wiki.dreamhost.com/index.php/Ruby_on_Rails#Quick_Start_Guide_August_2006
with a symbolic link from my_domain.tld in ~/ to
~/apps/residence/public/
I get the Rails welcome screen. I have uploaded my app directory etc,
and
2006 Feb 20
0
Windows Deployment questions
Hello out there in Rails land. This is a multipart question so please
bear with me...
First, the background info:
I''ve been making Apache work on our Windows servers here and I''m having
good luck. However, I notice that Apache+FCGI doesn''t scale quite as
well as I''d hoped.
I have one static process defined for my FastCGI server, and I see about
5 requests
2006 Feb 13
4
Problems deploying in Dreamhost
I am trying to deploy a Rails application on Dreamhost. My application
works just fine in my laptop using WEBrick. The problem that I have is
that I currently have my website in the public folder. I can reference
everything just fine from if it is in the public folder, but if I click
in a link that is an actual controller/action I get an error that the
file does not exist. I followed all
2006 Feb 14
9
Deploying in Dreamhost
What pain. I am ready to switch hosts. I have this app in Dreamhost
where I load the static pages just fine. The location of my rails app
is /home/username/webaddress.com Under that resides the app/, public/
and so on. Like I said I can see my static pages that I have under
public since I have in the Managed host panel the following:
Web Directory: /home/username/[ webaddress.com/public
2006 Jan 24
2
webrick and in_place_editor_field
I''m having a strange problem with webrick spinning forever. I have a
view ''list'' that renders a collection:
<%= render :partial => ''item'', :collection => @items %>
The item partial looks like so:
<div id="item_<%= item.id %>">
...
<div id="price">
<%= in_place_editor_field :item, :price