FAQ Database Discussion Community


rails server is not starting in rails 3.2.1

mysql,ruby-on-rails,localhost,server,ruby-1.9.3
I am using rails 3.2.1 with ruby 1.9.3 on ubuntu 13.10 with rbenv I hace everything good but when I try to start the server it gives an error anybody who know anything related to this please help. In a great need. => Booting WEBrick => Rails 4.2.0 application starting...

rails server not starting on rails 3.1.2

mysql,ruby-on-rails,localhost,uuid,ruby-1.9.3
I am using rails 3.2.1 with ruby 1.9.3 on ubuntu 13.10 with rbenv I hace everything good but when I try to start the server it gives an error anybody who know anything related to this please help. In a great need. => Booting WEBrick => Rails 4.2.0 application starting...

installing insoshi in rails 4 with ruby 1.9.3 in windows 7

ruby-on-rails,plugins,social-networking,ruby-1.9.3,insoshi
I am trying to use Insoshi in Rails 4 and everything works fine until the $ script/install. Whenever I put this command in my command prompt I get this error: 'script' is not recognized as an internal or external command, operable program or batch file. I am new to rails...

Call method to generate arguments in ruby works in 1.8.7 but not 1.9.3

ruby-on-rails,ruby,ruby-1.9.3
This is something that I had working in ruby 1.8.7, but no longer works in 1.9.3, and I am not sure what changes make this fail. Previously, I had something like this myFunction(submitArgs()) where submitArgs was a helper method that could be called with some options def submitArgs(args={}) #Some logic/manipulations...

Dynamically adding methods in Ruby possible?

ruby,ruby-1.9.3
This code: a = {'code'=>200, 'body'=>'text'} b = a['body'] def b.code return a['code'] end p b.code Results in 'code': undefined local variable or method `a' for "text":String (NameError) What am I doing wrong?...