Do you see any errors if you run
bundle install
It should not have been necessary to run it manually as it is run
automatically when you do rails new, but perhaps there was an error that
you did not notice. It is necessary to re-run bundle if you change Gemfile.
Otherwise then post the details of the error when you run the server
please. Copy/paste the full terminal output that you get when you run
rails s
my operating system is: windows 7 and my rails version is: 4.2.5.1 and ruby is: ruby 2.1.8p440 (2015-12-16 revision 53160) [i386-mingw32]
whenever i installed nodejs on system this error shows:
D:\rubyproject>gem install nodejs
ERROR: Could not find a valid gem ‘nodejs’ (>= 0) in any repository
ERROR: Possible alternatives: nodes, noderb, modeljs, models, node
what do i do ?
please help me
how to redirect to any page after logout the user and destroy the sesssion?
please help
my problem is after logout my app redirect to my index page (root_path page) and i don’t want it .how to go to separate separate page after logout?
which gem you are using for authentication? I mean are you using devise or authlogic or your own authentication. What kind of user types you are using to redirect different pages after logout?
i dont see any error but, still when i run rails server it is showing the
error There was an error while trying to load the gem 'uglifier'
C:\Ruby21-x64\rails\firstapp>bundle install
You should post the complete error instead of just the main message.
Though it looks another case of windows script host error.
either:
1. use something more posix where ruby is actually intended to run (i.e.
not windows) or
2. install nodejs (or just download node executable (node.exe) and put
somewhere in your PATH)
The big problem you have is that you are trying to develop with Rails using
Windows. I understand some have managed to achieve this but many have had
significant problems. Most developers use Linux or Mac. My advice is to
switch to a Linux distribution (such as Ubuntu). You can run this in a
virtual machine under windows or you can dual boot the PC. I did the
latter (using Ubuntu) when I started working with Rails and now very rarely
boot into Windows as the vast majority of applications have equivalent apps
on Ubuntu. It is great to feel that you are back in control of the PC
after years of Microsoft dominance.