I was trying to make a contact form using this site
I made it to mount ContactForm then ran bundle update and bundle install. Now I am unable to start the rails server. I get this error:
Error: Command not recognized
Usage: rails COMMAND [ARGS]
I have used git to checkout my last working copy of the app but I still am unable to start the rails server and have tried searching for answers online, unsuccessfully. Please help. I do not know how to continue to work on my website.
Thank you.
No need to respond. I tried first updating my Gemfile to the specific versions I know I was using before the rails server failed to respond. I had no luck there. Then I just uninstalled every gem and reinstalled them all and was able to get it up and running again. Mystery to me, but solved.
Related
I just created a new Rails app and I have tried to start the app using the command 'rails server but the app is not starting.
(https://i.stack.imgur.com/eQAvz.png)
I have also tried to run gem install tzinfo-data, Run bundle update and budle install but its still not working. Based on what i saw from those who ran into similar problem, the tzinfo gem is the one that might need to be installed on its own but it didn't work for me.
While creating the new app in rails by rails new projectname Iam getting this error i googled a lot but cant find the solution.
/home/aaquib/.rbenv/versions/2.3.1/lib/ruby/2.3.0/rubygems/specification.rb
:2274:in `check_version_conflict': can't activate activesupport-
5.1.2,
already activated activesupport-5.0.5 (Gem::LoadError)
You should be able to fix this by removing your Gemfile.lock and running bundle install again. You have two conflicting versions of the same gem locked at the same time, which leads to this error.
If that alone doesn't work, try also running spring stop to start with a clean slate.
I think my problem is solved ..IAm posting the answer for others .
just add this in terminal..
gem clean
and then create a new app by rails new projectname.
I have been having this problem the whole day. whenever i try to do a rake db:migrate command on rails i keep getting this error.
"error while loading the hoe gem.
Please install it by running the following:
$ [sudo] gem install hoe".
But everytime i run and update all my gems i still get the same error.
The hoe gems i have already installed is the latest version (hoe 3.15.3)
Please help.
Am running rails 5.0.0.1this is the error i keep getting
Do you have the correct version? check your Gemfile.
Use bundle install to install correct version
I kind of found a way around it. I just deleted the previous app folder, created a new one and the problem was fixed. Good thing i was just starting out.
I am trying to run my rails server in new created app, but everytime I wrote
"rails server"
it tells me that i need gem named
"byebug"
and when i try to install this gem this is result: imgur.com
I had the rails server before but I reinstalled my pc and now I can't run it. I have 64bit windows 10.
I tried reinstall every rails spiece include mysql and nothing have changed.
Can anyone help me please?
You error messages states "run bundle install to install missing gems". On your prompt type "bundle install" and hit enter. This should work.
Since you are using Windows for Ruby on Rails development. You need to properly configure all the dependencies as the error shows.
Install or update your development kit, that serve as the building tools in Windows.
please follow the instructions here:
https://github.com/oneclick/rubyinstaller/wiki/Development-Kit
I'm a beginner to Ruby on Rails tutorials and the last thing I did was create a new app, generate scaffolding without Tests (- T flag), installed RSpec, and initiated a git repo in the folder.
That was two hours ago. I open my laptop up, try to run:
rails server
Now I'm seeing this error:
/Users/reneruiz/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/
rubygems/requirement.rb:72:in 'parse': Illformed requirement ["0.7.1."] (ArgumentError)
The full stack trace is here: http://cl.ly/4pQC
I did some Google searches and I can't seem to find anyone else with the same problem.
I don't know how or where to go from here. Would seriously appreciate some help.
Check your Gemfile for version requirements that look like "0.7.1." It looks like Bundler is trying to check for a gem with a certain version and is choking on the trailing period. If you find the version in your Gemfile, fix it and then run bundle install on the command line, and see if it'll start.
Instead of only bundle install run bundle install --full-index