search for: railsroot

Displaying 7 results from an estimated 7 matches for "railsroot".

Did you mean: rails_root
2007 Apr 10
3
Link to local files
I have a small rails system I am building. Part of the code allow uploading files in to RailsRoot/public/files folder I am running this system is several places that have different domain and folder combinations. cases: 1) domain1.com/folder_a # where folder_a is a symbolic link from Apache document root to the public folder of rails app 2) domain2.com/folder_b/public # where folder_b is...
2006 Feb 13
1
dynamically generating a controller and appropriate routing
I''m working on a library similar to acts_as_taggable. I''d like it to be a simple, one file drop-in: i.e., put my_library.rb into RAILSROOT/lib/ and have everything work. However, the library requires a controller to render some stuff, so I need to be able to create the controller class, set the routing, and extend the controller at run-time from within my_library.rb. I have code that creates and extends the controller properly; I'...
2006 Oct 31
5
How to run edge RSpec (on Rails)?
I''m interested in tracking edge development of the RSpec on Rails plugin and I''m a bit confused. The installation guide (http://rspec.rubyforge.org/documentation/rails/install.html) says, "You''ll have to install the RSpec core gem first." It also says, "Take note of what rspec version you''re installing ? it''s very important that you
2006 Jul 24
4
Destroy action doesn''t work?
Hi all, Here is my Customer controller''s destroy method: ** def destroy Customer.find(params[:id]).destroy redirect_to :action => ''list'' end It''s stock, untouched scaffold code. When I submit the URL: http://localhost:3000/customers/destroy/11 The entry in the MySQL database with id 11 is not destroyed. The destroy method won''t
2006 Jun 22
1
Problem integrating rails into apache
Hi all, I''ve read the guide on integrating rails into apache on the wiki.rubyonrails.com wiki, but I run into a problem. I am trying to get the cookbook application as treated in the onlamp tutorial about ruby on rails to work form apache. I can view the index.html, but visiting cookbook/recipe/list gives me Application error Change this error message for exceptions thrown outside
2006 Jul 26
5
Mongrel + mod_proxy URL issues
We have a Centos server with a number of virtual hosts, and my rails app runs under one of those virtual hosts using mongrel_rails. The app lives in /home/mydomain/railsapp where /home/mydomain/railsapp/public is the rails root. It runs under mongrel on port 8008, so to get to it users invoke the url http://www.mydomain.com:8008/ - all is fine to this point. Now I have some users whose
2006 Jan 09
7
File_column Dynamic directory
I asked this question earlier and did recieve an answer but I am not sure Ifully understood the answer as I am getting all sorts of errors when trying to implement. Basically I want to add a layer to the path for my files. I have the following set up in my model class: file_column :image, :store_dir => :dynamic_dir def dynamic_dir