similar to: (no subject)

Displaying 20 results from an estimated 20000 matches similar to: "(no subject)"

2010 Oct 07
3
IRB problem (rb1.9.1 +rails3.0 )
first post in this forum... I have ubuntu 10.04Lts / rb1.9.1+ rails 3.0... when I am trying to use irb... ($rails console) I get this... I have tried to reinstall everything(irb ruby readline by synaptic) but nothing came up any help would be nice ! thanks in advance... ! mihaill@mihaill-laptop:~/www/blog$ rails console /usr/local/lib/ruby/1.9.1/irb/completion.rb:9:in `require'': no such
2012 Nov 19
0
has_one :through NoMethodError: undefined method `klass' for nil:NilClass when doing class_name on reflection
Not sure if this is expected or not. Only happened with a has_one :through I had setup. (Workaround is just to remove it and go through the association manually vs has_one ..., through: .) Not a big deal if no one has time to look at it, as it''s not a big enough deal to look into a fix on our side. In Rails (3.2.9) console if I do: MyModel.reflections.each {|name,reflection|
2013 Feb 02
2
rake db:migrate problem
mini@mini:~/Sites/music_library$ rake db:migrate rake aborted! couldn''t parse YAML at line 28 column 6 /home/mini/my_gems/gems/railties-3.2.9/lib/rails/application/configuration.rb:115:in `database_configuration'' /home/mini/my_gems/gems/activerecord-3.2.9/lib/active_record/railtie.rb:78:in `block (2 levels) in <class:Railtie>''
2011 May 07
4
Activerecord::JDBCError: Invalid column number
Hi, I''m rather new to Ruby and RoR, so I do not really know whether this ist the right forum to place my question. For my first ''project'' I planned to create a simple online-viewer, which grabs data from an existing database and make them visible in a structured form via browsers. So I thought that could be the right beginner-project, because I have only read datasets
2006 Feb 25
7
generating HTML instead of XHTML
After reading http://www.hixie.ch/advocacy/xhtml and having some headaches with IE, I wonder whether helpers can be configured to generate HTML instead of XHTML. -- fxn
2013 Nov 09
1
ActiveRecord return normal?
Hi Everyone, I''m totally brand new to RoR. I''m really starting to love coding more now that I''ve found RoR. I have what might be a dumb question, but I''m curious to know this. Is it normal to get this result: In the Beginning Rails 4 book I''m following this step: irb(main):097:0> article.location = "Toronto, ON" Here''s
2011 May 25
1
can't load hpricot gem in rails 3
This is in windows .. So from irb, I can load hpricot ok. (ruby 1.8.7) C:\Users\Laurence\rails-play\plug-test>irb irb(main):001:0> require ''hpricot'' LoadError: no such file to load -- hpricot from (irb):1:in `require'' from (irb):1 irb(main):002:0> require ''rubygems'' => true irb(main):003:0> require
2010 Aug 22
7
Rails 3: Error saving an object with no useful information
Hey, I''m kinda desperate cause I''m getting an error and have no idea how to fix this since it doesn''t give me any information hinting where the problem is: irb(main):054:0> reload!;User.last.save! Reloading... NameError: undefined local variable or method `to_ary'' for #<User:0x4ed5d20> from
2010 Apr 27
0
undefined method 'each' in acts_as_taggable_on with rails 3 beta 3 and ruby 1.9
Hi I am trying to use acts_as_taggable_on in my new projects. But I got Error when I try to save tags. undefined method `each'' for "[]":String NoMethodError: undefined method `each'' for "":String from C:/Ruby19/lib/ruby/gems/1.9.1/gems/ activerecord-3.0.0.beta3/lib/active_record/associations/ association_collection.rb:347:in `replace''
2010 Nov 30
1
rails 3 meta_search usage
I am in the process of upgrading my app from Rails2 to Rails3. My Rails2 app uses searchlogic heavily. After googling i''ve come to know that searchlogic is not compatible with Rails3 and need to use meta_search instead. But i havent quite understood the usage of meta_search vis-a-vis searchlogic. If i have a User model with :name and :address fields, i am not able to use the following
2013 Feb 04
3
Wicked pdf
Hello Guys I am using rails 3.2.8 and wickedpdf. Its working well in local but not in production.Below is the production logs error. "***************\"/var/www/apps/staging/shared/bundle/ruby/1.9.1/bin/wkhtmltopdf\" -q \"file:///tmp/wicked_pdf_9892_0.html\" \"/tmp/wicked_pdf_generated_file_9892_0.pdf\" ***************" RuntimeError: Failed to
2011 Oct 16
4
Ruby on rails with twitter integration
after i searched, i got so many links related with the twitter integration , Then i do that with one following link http://cbpowell.wordpress.com/2011/03/17/twitter-oauth-and-ruby-on-rails-integrated-cookbook-style-in-the-console-updated-for-twitter-1-0/ after some steps with the rails console, *Then i got some errors after i gave the steps to send the tweet from the application * * client
2013 Feb 14
4
Struggling with Jruby Rails + jdbc driver
hi all, I am having a hard time trying to find out what''s wrong with my setup. It used to work smoothly until I decided out of the blue to do a selfupdate and upgrade outdated on MacPort, then things started going south very quickily. Since MacPort kinda broke, I pull it all out and re-install the ports I have before, which went pretty smoothly. Then to my surprise any command I
2011 Apr 12
4
OS X - `require': no such file to load -- sqlite3/sqlite3_native
I''ve searched and search, tried a number of things like unstalling sqlite3 and reinstalling. Reinstalling Rails, building sqlite3 from source, etc. Nothing seems to work. When I try to start up my server I get the following: MacBook-Pro:splash Ross$ rails server /Volumes/Macintosh HD/Users/Ross/rails_projects/splash/json/ruby/1.9.1/gems/sqlite3-1.3.3/lib/sqlite3.rb:6:in
2010 Dec 15
3
ORA-12514: TNS:listener d oes not currently know of service requested in connect descriptor (OCIEr
Hi I am a new to ROR and learning this framework from various tutorials. I have my new application and had the rails generate scaffold get going but after this when I first ran the rake db:migrate I got this ERROR! ORA-12514: TNS:listener d oes not currently know of service requested in connect descriptor (OCIError) I''m using database which is on a server and have used the tnsnames.ora
2006 Mar 23
4
Error with Rails 1.1RC1 and Properties page
I just tried setting up a simple Rails app, after updating to the 1.1RC1 version of Rails. Generating a simple scaffold worked fine, and WEBrick started fine with script/server. I then went to the http://localhost:3000 page and clicked on the "About your application''s environment" link, and an error was displayed: NoMethodError in Rails/info#properties private method
2012 Aug 14
1
NoMethodError: undefined method `accept' for nil:NilClass
Here''s the trace, NoMethodError: undefined method `accept'' for nil:NilClass from /Users/blaine/.rvm/gems/ruby-1.9.2-p290/gems/activerecord-3.2.3/lib/active_record/connection_adapters/abstract/database_statements.rb:7:in `to_sql'' from
2006 Apr 02
2
Recognition failed for "/rails_info/properties"
Hello. I can''t figure out why I''m getting the following problem, or how to fix it. I have Rails 1.1.0 installed on both OS X and Solaris, and in both new and old projects, and using either WEBrick or lighttpd, I get: Recognition failed for "/rails_info/properties" when lining to it off the welcome to rails page. I get the following errors through the console:
2011 Apr 18
2
rubygems fail - require hpricot!
Hi guys, I wanted to fetch some info from webpage and use it in my db. I read hpricot is one way to do it. But the problem is I''m unable to use it with my app. For some reason after successfully installing hpricot it fails when I try to use it in the rails console. I''ve been trying to fix this for the last four-five days. I''m stumped ! I tried re-installing everything
2011 Apr 30
1
Could not autoload inventory_active_record: uninitialized constant ActiveRecord
Trying to set up the inventory service on puppet 2.6.8, pretty sure I''ve met all the dependencies but puppetmaster logs Could not autoload inventory_active_record: uninitialized constant ActiveRecord When clients attempt to connect. local gems: *** LOCAL GEMS *** abstract (1.0.0) actionmailer (3.0.7, 2.2.3) actionpack (3.0.7, 2.2.3) activemodel (3.0.7) activerecord (3.0.7)