search for: app_path

Displaying 13 results from an estimated 13 matches for "app_path".

Did you mean: app_math
2013 Nov 21
2
#5 Getting Up and Running
http://guides.rubyonrails.org/getting_started.html#getting-up-and-running create a controller called PostsController. You can do this by running this command: $ rails g controller posts That results in an error. >rails g controller posts Usage: rails new APP_PATH [options] Options: What am I missing? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZC...
2011 May 20
3
"no such file to load -- rails/commands/runner (LoadError)"
...; from runner:10:in `<main>'' from /usr/local/rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'' from runner:10:in `<main>''" My runner.rb is as follows:- #!/usr/bin/env ruby # script/runner for rails 3.0 APP_PATH = File.expand_path(''../../config/environment'', __FILE__) require ''rubygems'' require ''rails/commands/runner'' My Bash file is as follows:- MYPATH=/usr/local/rvm/rubies/ruby-1.9.2-p180/bin $MYPATH/ruby runner test.rb -e test Can anyone tell me...
2011 May 10
7
Webrick script/server file does not exist
...or/plugins create vendor/plugins/.gitkeep But as you can see script directory contains only one file rails Here is its content: #!/usr/bin/env ruby.exe # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application. APP_PATH = File.expand_path(''../../config/application'', __FILE__) require File.expand_path(''../../config/boot'', __FILE__) require ''rails/commands'' So the command C:\Sites\helloworld\ruby script/server to start WebRick does not work because s...
2012 Jul 16
1
After moving from Ruby 1.8.7 to 1.9.3 - test/unit/error (LoadError)
...#39; # $: << File.join(File.dirname(__FILE__),''..'') # require File.dirname(__FILE__) + ''/../config/boot'' # require File.expand_path(''../../config/boot'', __FILE__) # require File.expand_path(__FILE__)+''/../../config/boot'' APP_PATH = File.expand_path(''../../config/application'', __FILE__) require File.expand_path(''../../config/boot'', __FILE__) # require ''rails/commands'' require ''commands/server'' Any suggestions? (besides writing the app from scratch in...
2010 Oct 24
1
Re: [Rails-core] Re: (Unable to start rails application) ruby scipt/server error
...File.read("#{RAILS_ROOT}/config/environment.rb") end end end end # All that for this: Rails.boot! Now cd OpenStreetView rails server gives the following error Usage: rails new APP_PATH [options] Options: -r, [--ruby=PATH] # Path to the Ruby binary of your choice # Default: /usr/local/bin/ruby -d, [--database=DATABASE] # Preconfigure for selected database (options: mysql/oracle/postgresql/sqlite3/frontbase/ibm_db)...
2010 Nov 27
9
rails server command
Hi. When I try and start my server using ''rails server'' I get the following..... Usage: rails new APP_PATH [options] Options: -r, [--ruby=PATH] # Path to the Ruby binary of your choice # Default: C:/InstantRails-2.0-win/ruby/bin/r xe -d, [--database=DATABASE] # Preconfigure for selected database (options ql/oracle/postgresql/sqlite3/frontbase/ibm_db)...
2009 Apr 07
5
strategies for securing attachment files from unwanted access
...t now, the image_tags are only rendered if you are logged in and your role allows you to, but you can copy the URL and access the image any time, even without logging in, because the images are served directly and there is no controller involved. Also the URLs of images are pretty simple like "APP_PATH/attachments/8/report.pdf" or something like that, which makes it easy to guess other file URLs. So, what can you do to protect people form accessing file they should not? I have compiled a list of possible strategies we have thought about or read about on the internet: 1. Generate random nam...
2011 Jul 27
9
Migration to rails2 rails3
Good evening everyone, I went to change the Rails version of my project, and saw that many things have stopped working. As the "rake routes", which is giving the following error: rrmartins rodrigo @: ~ / Documents / vota_prato $ rake routes rake aborted! no such file to load - tasks / rails (See full trace by running task with - trace) What do you think you can be? thanks -- *
2010 Jul 24
23
How to disable ORM in Rails 3
Is there any way to prevent Rails 3 from using an ORM? In Rails 2, it used to have a description in environments.rb explaining how to do that. In Rails 3, is there any way to tell it to not use any database? I was trying to make some benchmarks from situations that don''t require a database... Thanks in advance, Rodrigo. -- You received this message because you are subscribed to
2009 Apr 27
5
ruby jasper report
Hi, I am trying to create a pdf using ruby jasper. For this I am referring this url:- http://oldwiki.rubyonrails.org/rails/pages/howtointegratejasperreports I have done everything whatever is in that link. Still I am not able to get the pdf. I am not getting any error in log file. My log file is:- "Processing AccountController#customer_report (for 127.0.0.1 at 2009-04-27 13:19:34) [GET]
2012 Feb 09
7
ruby script/server is not working
hi everyone i just typed ruby script/server -d and then after when i type again it is not working. i got this error [2012-02-09 16:19:54] WARN TCPServer Error: Address already in use - bind(2) Exiting /usr/lib/ruby/1.8/webrick/utils.rb:73:in `initialize'': Address already in use - bind(2) (Errno::EADDRINUSE) from /usr/lib/ruby/1.8/webrick/utils.rb:73:in `new'' from
2010 Oct 22
6
(Unable to start rails application) ruby scipt/server error
1) I installed the ruby-1.9.2-p0 and rubygems-1.3.7 in the (/usr/local/src directory ) 2) Then i installed rails from terminal by typing follwoing sudo gem install rails --include-dependencies 3) Then i made a rails applcation from terminal as rails new demo then cd demo ruby
2012 Jan 21
16
Installing rails on Ubuntu
Hello, I''m trying to install the rails on ubuntu 11.10, but when I put the command felipe@Felipe:~/Downloads/rubygems-1.8.15$ sudo gem install rails --no-r1 --no-rdoc ERROR: Loading command: install (LoadError) no such file to load -- zlib ERROR: While executing gem ... (NameError) uninitialized constant Gem::Commands::InstallCommand felipe@Felipe:~/Downloads/rubygems-1.8.15$