similar to: storing sessions in RAILS_ROOT/tmp

Displaying 20 results from an estimated 20000 matches similar to: "storing sessions in RAILS_ROOT/tmp"

2006 May 03
1
sessions, cached pages, and the tmp folder
I''ve been running edge rails for a while but I can''t seem to get my sessions and to be written to the rails_root/tmp folder. My sessions keep getting wrote to the servers /tmp directory. What do I need to do to get rails to use the new tmp folder? Thanks in advance Charlie Bowman www.recentrambles.com -------------- next part -------------- An HTML attachment was scrubbed...
2006 May 26
11
Weird Caching Issue
Hey all, Here''s the issue... I''m not entirely sure it''s even a Cache-related issue, but here it goes: I''ve deployed a Rails app onto a subdomain of my clients site... The server is running Apache2, and I''m proxying through to Lighttpd. The issue I''m having is that I''m able to add content to the site (data exists in the db), but
2006 Jan 17
6
database.yml and remote mysql database
I can''t seem to connect to a remote database. Here is what I''ve tried. the database,username,password, and host have been changed to protect the innocent. development: adapter: mysql database: database username: username password: password host: host port: 3306 Here is the error /usr/lib/ruby/1.8/yaml.rb:133:in `load'': syntax error on line 11, col 2: `
2006 Mar 06
5
Dreamhost subscription?
I''m thinking about signing up with DreamHost for the base Level 1 $9.95 plan. Does anyone think that''s a bad idea? I''d like to know others thoughts, and who they recommend for RoR hosting? Thanks! -- Posted via http://www.ruby-forum.com/.
2006 Apr 28
35
what''s your rails wishlist?
I''ve been working with rails for a while now. Rails is the second web framework I''ve tried. It blows the doors off catalyst (perl''s best framework). I even just wrote my first plugin (broomstick). Ruby''s ability to meta-program blew me away with it''s ease of use. I''ve been so impressed with the helpers that rails uses to make a lot of
2006 Apr 11
11
I can''t get rails to see my plugin. How can I this?
I''m trying to produce a plugin to help me with my page caching woes. I can''t seem to get rails to see my method within the plugin. This is my first attempt at a plugin so I''m sure I''m missing something. I''ve created a directory /vendor/lib/plugins/broom_stick/. I then created an init.rb file with: require ''broom_stick'' I then
2006 May 26
8
calling render_to_string outside of controller
How can I call render_to_string outside of a controller. I''m stuck on this. I''ve nearly got my plugin finished but I can''t seem to get this to work. The method is in ActionController::Base but it is protected. -- Posted via http://www.ruby-forum.com/.
2006 Apr 08
4
rails won''t cache my action
I''ve decided to dive into page caching for my rails app. I''m doing my testing with webbrick and it refuses to display the cached page for a particular action. I''ve modified my paginator helper to put the page parameter in the url so that the paginated page can be used with caching. This works perfectly when the page parameter is in the url (ie browse/2006/2 or
2006 Jun 28
6
file_column plugin. Storing files outside RAILS_ROOT
I also posted this on Rails Engines forum. Sorry for the double post. I am trying to configure file_column plugin so that it stores the images in a directory completely outside of RAILS_ROOT. I have no problems in storing the files by setting :root_path option. But I can''t get to display these images using ''url_for_file_column''. What I get instead of the image is
2006 Jan 26
4
is Client.find(params[:id]) safe?
@client = Client.find(params[:id]) I use the above line in alot of scripts because it is shown this way in the Rails book. Is this safe. Does it use placeholders? Will it leave me open to an SQL injection attack? -- Posted via http://www.ruby-forum.com/.
2007 Jul 26
1
autotest loosing RAILS_ROOT Constant?
I am having a weird error that I have not had before... I''m bouncing it off the list to see if anyone else has had it, or to give me some pointers about how to find it. Basically, AUTOTEST will run (RSpec mode), fine, then suddenly, will complain that RAILS_ROOT is undefined. Then I stop and restart it, with no code change... no problem. It happens on different specs where I use
2006 Apr 13
1
Setting CWD to be RAILS_ROOT for fastcgi/Apache
All, So I''ve discovered that when running on FastCGI with Apache and the working directory for the process is actually the "public" directory under RAILS_ROOT. Is there a way to force the current working directory to be RAILS_ROOT for the FastCGI procs so that file manipulation would then be done relative to RAILS_ROOT? Or should I just make sure that all of my paths are
2006 May 29
2
Adding model fields
I added a field "url" to a table, modified the view to show the new field. Now I''m getting an error in the code that processes the form in the view: copy_from_item = Item.find(params[:id]) @item = Item.new(copy_from_item.attributes) The second line here gives this error: undefined method `url='' for #<Item:0x246e3f0> RAILS_ROOT:
2006 Feb 20
3
RAILS_ROOT
I just replied to someone about using send_file and while I was testing my solution I figured out that the controllers "current working dir" appears to be the root of the app. Then I saw a reply that Ezra sent to someone where he used RAILS_ROOT and I thought "duh, I''ve seen that before... shoulda used that". But, when I had an action print out RAILS_ROOT
2006 Aug 16
6
error with edge rails
I''ve started an app with rails 1.1.6 then ran freeze_edge. My app will not run with rails in the vendor folder. Have I forgot to do something? I"ve been without the internet for the last two months. Has something changed?
2006 May 23
7
how to pull text from database and eval it?
I''m trying to add some executable code to my blog posts. How can I include this inside of a blog post and eval it? Charlie bowman http://www.recentrambles.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060523/a3536408/attachment.html
2006 Apr 08
2
Is caching in rails broken or at least very flawed?
I was going to add caching to my applications, but everything that I''ve found through google is about all of the problems everyone has had with caching. Is is really as bad as I''ve read? -- Posted via http://www.ruby-forum.com/.
2006 Apr 18
11
how to release a plugin
I''ve developed a very useful (at least to me) plugin for rails. How do I go about releasing it. I have an account with rubyforge but I don''t know how to let rails know about it. Charlie Bowman www.recentrambles.com -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Oct 09
1
error running 'ruby script/console' => "uninitialized constant RAILS_ROOT" ??
Hi, Anyone suggest why when I try to run the console via ''ruby script/console'' I get the following "uninitialized constant RAILS_ROOT" ?? Error: ================================ V:\Source\testapp>ruby script\console Loading development environment. ./script/../config/../config/environment.rb:3:NameError: uninitialized constant RAILS_ROOT
2006 Feb 26
3
how to format and syntax highlight code in html
I''ve written my own blog (I know typo is better, but I wanted the experience of writing my own) and I want to add syntax highlighting to it. I''ve read about using the ruby gem syntax but I can''t figure out how to implement it. I''ve also wondered if it could be used in my case. How does it work when you have a long line of code but the <div> your