when i'm trying to create a new rails project in netbeans. it gives me following error
rake aborted! cannot load such file--
warbler F:/ninto/RubyApplication3/lib/tasks/warbler.rake1:in
'require'F:/ninto/Ruby/RailsApplication3/Rakefile:7:in'<top(required)>'
this occurs when i check the option
Add Rake Targets to Support App Server Deployment(.war)
i'm using netbeans 7.3, rails 3.2.13, ruby 1.9.3p392, windows. Googled through many posts still couldn't find an answer.
thanks
Related
I am going through the open-source Spree commerce tutorial. I am new to Ruby, so I just installed Ruby 2.7.2 and Rails 6.1. Unfortunately, Spree doesn't support Rails 6.1 yet, as described here: Bundler could not find compatible versions for gem “rails”.... So, I followed the solutions provided on that SO post and modified my Gemfile to set rails (and railties) to 6.0.3. That seemed to fix the error mentioned on that SO post...
But now when trying to run the command from the tutorial
"bundle exec rails g spree:install --user_class=Spree::User", I'm getting the error:
C:/Program Files/Ruby27-x64/lib/ruby/gems/2.7.0/gems/railties-6.0.3/lib/rails/application/configuration.rb:156:in `load_defaults': Unknown version "6.1" (RuntimeError)
Why is this happening, and how do I resolve this error?
Thank you in advance!
Get to the config/application.rb file in your app's folder and set the line with
config.load_defaults 6.1
to the below
config.load_defaults 6.0
The problem is, when you initially ran rails new command, the generators set the rails version to 6.1, which doesn't change when you specified 6.0.0 as version in Gemfile.
I downloaded RoR ans installed in on my Windows XP, but anyhow its not working. I am totally new to thie RoR. Please check my following screenshots --
1)This is what i did initially -
2)Started rails server but it wont.
3)Even rails version command is not working.
4)This is what creating in my aap2 folder :(
Please let me know what I am doing wrong.
NOTE -- I installed RoR via rails-installer.exe
Installer info --
You've installed Rails 2.3 but you're expecting it to work like Rails 3.
The correct syntax for Rails 2.3 is:
rails myproject
The correct syntax for Rails 3.x is:
rails new myproject
For both, you probably want to check the version with:
rails -v
Rails 2.3 is no longer actively supported so you should not be creating new projects with it.
i've upgraded to rubymine 3.1 and now rubymine take all project as rails 3 project, but the mine are not. Does anybody of you face this problem. Ruby mine fires up this message, when i try to run application
Run configuration error: Rails 2.x launcher found instead of Rails 3.x one. You need '/script/rails'
script to launch Rails server. Please update server launcher according to Rails 3.x documentation
My final state is i can run rails 2.x app server from rubymine
Do you know how to achieve that?
I had this problem using Rails 2.3 and RubyMine 3.1 -- my solution was to look at the project settings (File -> Settings) and select Ruby SDK and Gems. Look through your attached rails gems. I had both rails 2.x and rails 3.x gems attached to my project.
I have just started to learn Ruby on Rails and in going through a tutorial I am not able to launch the rails project because of the following error.
-e:4:in `load': no such file to load -- script/server (LoadError)
from -e:4:in `<main>'
I have installed Ruby 1.9.2 and using RadRails as the IDE for creating and executing the Rails project. Any suggestions?
Most likely your tutorial refers to Rails 2 (for which given command works), while you're using Rails 3.
I'm not sure how exactly you start server in Rails 3 (edit see answer by jdl), but take my adice: find another tutorial. Otherwise, you'll have to create such questions here several times a day :)
If you just installed the latest Rails the the command has changed (as of Rails 3) to:
$ ./script/rails server
I think the best way to start a server in Rails 3 is to run this command from the root of the project:
rails server
You should have the rails executable in your path if you've installed the Rails 3 gem.
Hello
I am currently using:
Ubuntu 10.04LTS
Netbeans 6.9.1 (with embedded JRuby 1.5.1)
JDK6u17
GlassFish Gem 1.0.2
I am using a old JDK because of this bug:
http://jira.codehaus.org/browse/JRUBY-4785
I have partially completed application, but i want migrate to rails 3(currently application is in rails 2.3.8).
So i go to:
$HOME/netbeans-6.9.1/ruby/jruby-1.5.1/bin and type: jruby gem install rails -v=3.0.3. Everything is OK.
Then i create a sample RoR project and use some simple scaffold. Works.
But when i choose in Netbeans rake db:migrate it shows me message: "db:migrate" taks does not exist.
Any idea how to fix that?
I would be grateful for the help.
UPDATE
I have tested this in Ubuntu and it works fine.
But in Mac OS X this trick don't work.
So I made a symbolic link called jrake to jruby/bin/rake
cd /bin
ln -s /Applications/NetBeans/NetBeans\ 6.9.1.app/Contents/Resources/NetBeans/ruby/jruby-1.5.1/bin/rake jrake
and I just type jrake db:migrate in project Directory and it works.
Does this link help?:
http://www.blakes-site.co.uk/blog/13/Fix-NetBeans-dbmigrate-task-does-not-exists-error/
UPDATE
Link broken - From the Google Cache of Blake Simpson's blog:
I have recently reinstalled Ruby on Rails 3.0.0 and created a new
Rails project in NetBeans 9.6.1
I could not migrate my database, or any other rake tasks for that
matter. I kept getting the error:
"db:migrate" task does not exist
The solution is to right click your project select "Run/Debug Rake
Task" and then click the button titled "Refresh Tasks".
Once this is done you should see a list of all your rake tasks. After
this you can simply re-run the db:migrate task and it will work.