similar to: RAILS_ROOT

Displaying 20 results from an estimated 10000 matches similar to: "RAILS_ROOT"

2005 Oct 14
1
Detecting Webrick // determining application "root" directory
Is there a way to detect Webrick at runtime? I''ve noticed a couple of differences between my dev environment (Webrick) and the production environment (Apache 2/FastCGI): * stream must be false in send_file with webrick * pwd is different - Webrick: It''s where you run ruby script/server from - Apache: It''s the public directory ... unless someone
2006 Feb 24
8
Ruby site structure on Apache
I use a hosting company,it use appache for RoR I test a ''hello word'' code here http://www.smtservers.com/demo/ I can see the working code here http://www.smtservers.com/demo/public/say/hello My question is how to short the url like http://www.smtservers.com/demo/say/hello.I do not like public always in URL Thanks for help Mark -- Posted via http://www.ruby-forum.com/.
2006 Jan 24
18
Can''t install rails, instructions in the book are wrong....
I can''t even get Rails installed in Windows XP. I follow the directions in "Agile Web Development With Rails", I download Ruby, then RubyGems, and I install those, and I then type the command that came right out of the book. C:\ruby>gem install rails --include-dependencies and it doesn''t even work: C:\ruby>"C:\ruby\bin\ruby.exe"
2006 Mar 22
4
Problem with ACL plugin system
Don''t know if anyone else has experienced this but I''m having a problem with the access_denied method in Ezra''s ACL access control plugin. It''s working fine (in conjunction with acts_as_authenticated) until it comes across a user it denies access to, in which case it throws the following error: NoMethodError in Admin#index protected method
2005 Dec 17
2
Encrypting files
Anyone know of a good (fast) way to encrypt/decrypt uploaded files in RoR? I''ve seen this project: http://ezcrypto.rubyforge.org/ but it only seems to encrypt strings and such. I need to encrypt files once they are uploaded, then decrypt them when they request the file back. Any ideas? Thanks, Mark -- Posted via http://www.ruby-forum.com/.
2006 Jan 23
5
can''t install model_security_generator
I''m trying to install Bruce Perens'' ModelSecurity gem, but it keeps asking me if I want to install rails too (I have already installed rails). It exits if I say no and crashes if I say yes: C:\>"c:\ruby\bin\ruby.exe" "c:\ruby\bin\gem" install model_security_generator Attempting local installation of ''model_security_generator'' Local gem
2006 Feb 07
3
ActiveRecord for kirbybase?
I''ve found vague mentions of various attempts at creating an ActiveRecord adapter for the KirbyBase pure Ruby DBMS, but nothing which looks like it''s actually working. Anyone know of such an adapter that is functional and available? b
2006 Feb 20
3
Background work
Greetings, I''ve got a rails app which is basically an admin interface to a xml dataset. Currently I''ve got rails rigged to call a function to spit the entire dataset to file with every change. This would actually be ok, its fairly infrequently updated, but when the dataset grows large the user sits there waiting for it to dump with no feedback as to whats going on. Oh yes,
2006 Jan 28
3
App running fine on Webrick, ActiveRecord::ConnectionNotEstablished in lighttpd
My app runs fine on webrick, but I get a ActiveRecord::ConnectionNotEstablished when I try to run it on lighttpd. Here''s the app''s lighttpd config: $HTTP["host"] =~ "(www\.)?mysite\.com" { server.document-root = "/home/pergesuteore/public/" server.error-handler-404 = "/dispatch.fcgi" fastcgi.server = ( ".fcgi" => (
2006 Feb 14
25
Rails and background tasks/threads
I am just getting into web servers/web applications and rails as well so bear with me. I am trying to write a web app that, based on a users input from the browser, will perform some task, and update the browser (ala ajax style) as needed and/or provide a way for the user to control the background task. Now, I have more experience with java servlets, which makes this easy enough for a beginner.
2006 Mar 03
3
Need Authentication Source
Hi there, This is my first post :) I''ve read Agile and Rails Recipes book. Now i''m learning on making a good authentication system and as i read this maillist archive, i''m interested to have a demo source code (any .sit or .zip .tgz .bz2 would be fine, i''m using tiger 10.4.5) for Security Model by Bruce Perens or any other demos (like a part of
2006 Jan 16
42
Linux Suggestions
I''m fairly new to Ruby & Rails and I come from a stricly M$ background. I''m trying to move into the world of open source, but I don''t have a good roadmap. I''m starting to develop a Rails-based product and I want to have the option to distribute it to non-hosted customers. So I''ve said all that to say this... I want to learn how to setup linux and
2006 Jan 18
5
reading folder structure on server with Rails - possible?
I''m building an extranet which has project folders allocated for each client and client project on a webserver. I''m hoping to be able to read a directory''s content if I give it a path like "/clients/[CLIENTNAME]/[PROJECTNAME]" (where /clients/.. would reside inside the rails public folder I guess) preferably recursively so it will read the contents of any
2006 Jan 31
4
A dumb question on extracting a value from a hash
Hi, I have the following code fragment; @comm_type = Communication.find_by_sql(''select id from communication_types where upper(description) = "EMAIL"'') Which results in >> @comm_type => [#<Communication:0x39a0f60 @attributes={"id"=>"4"}>] But when I try to test an ActiveREcord against this it doesn''t work;
2006 Jan 04
11
Query Mixin by Duane Johnson
Hello At the start of October, Duane Johnson announced the Query mixin plugin on this list. The code was attached to the announcement email. Unfortunately, I''ve not been able to locate the attached code. Goggle has not helped me this time. Could somebody forward it to me? Thanks in advance Harvey This e-mail has been scanned for all viruses by MessageLabs.
2006 Jan 10
5
problems overriding module with plugin
Hi I am trying to create a plug-in to fix the error in the rails core produced by the multiple delete on a HABTM relationship. I have confirmed that my plug-in is being included into the base during runtime however the code does not seem to be overridding the base class. module ActiveRecord module Associations module ClassMethods def has_and_belongs_to_many(association_id, options =
2006 Jan 06
8
How do I write a generator?
I''d like to take some advice and write a generator to change the scaffold.css. How do I do that? I looked on the wiki and googled it but have not found anything yet. Any help would be much appreciated. bruce
2005 Dec 29
5
help with installing login_engine
Hello, I did a script/plugin discover then script/plugin engine then script/plugin login_engine The discover worked, but I get engine and login_engine not found. I am using a Mac Thanks Frank
2006 Feb 15
7
Ackbar - ActiveRecord Adapter for KirbyBase
= About Ackbar Ackbar is an adapter for ActiveRecord (the Rails ORM layer) to the KirbyBase pure-ruby plain-text DBMS. Because KirbyBase does not support SQL, joins or transactions, this is not a 100% fit. There are some changes to the ActiveRecord interface (see below), but it may still be useful in some cases. = URIs Ackbar: http://ackbar.rubyforge.org KirbyBase:
2006 Feb 15
36
Rubuntu Live CD for Rails
Friends- I am almost finished with a custom live cd called Rubuntu ;-) This is an ubuntu live cd variant that comes preloaded with ruby and rails developers in mind. I already have it working with all the basics but I was wondering what extras people would like to see on this distro. What editors with what configurations? What other tools do people really like for rails development on a