Tag: ruby-on-rails-3

cannot load such file — script/rails : Getting this error while remote debugging through RubyMine

I am getting following error while remote debugging through RubyMine IDE. $ bundle exec rdebug-ide –port 1234 — script/rails server Fast Debugger (ruby-debug-ide 0.4.9) listens on :1234 /home/amit/.rvm/gems/ruby-1.9.3-p125/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug-ide.rb:123:in `debug_load’ /home/amit/.rvm/gems/ruby-1.9.3-p125/gems/ruby-debug-ide19-0.4.12/lib/ruby-debug-ide.rb:123:in `debug_program’ /home/amit/.rvm/gems/ruby-1.9.3-p125/gems/ruby-debug-ide19-0.4.12/bin/rdebug-ide:87:in `<top (required)>’ /home/amit/.rvm/gems/ruby-1.9.3-p125/bin/rdebug-ide:19:in `load’ /home/amit/.rvm/gems/ruby-1.9.3-p125/bin/rdebug-ide:19:in `<main>’ Uncaught exception: cannot load such file — script/rails I followed this link to install require gems for […]

ruby (extrat the ip address last login and sort them)

First I have a file derived from the last command in Linux. But I have hard time to figure out how to extract and sort every IP address and last command for each user. This actually how the file looks like: frank pts/5 Thu Dec 13 21:47 still logged in enha pts/3 Thu […]

Voting system to choose between two pictures

I am trying to create a voting picture system on rails 3. What I would like to have happen is have two pictures, and have people on the site vote for which one they like more. I know they have a thumbs_up gem, which creates a voting system quickly. Is there a way to either […]

Facebook gem for Rails app

Is there any ruby gem which can be used to see Facebook post in rails app, also allows to post through rails app. I tried this gem http://www.sitepoint.com/ruby-social-gems-facebook/ but it is not showing facebook page post.

Acts as taggable on Rails

How can I make an index route/action to see all the tags that I’ve created!, I’m using the gem at https://github.com/mbleigh/acts-as-taggable-on Thanks.

Restart a dummy application when testing rails engines?

I’m working in a new Rails engine and I need to restart it while testing. Of I try Dummy::Application.initialize! it do not work because the application was already initialized, so Rails returned the same instance. I need to do so my engine after_initialize block runs again>

How make a HTTP request using Ruby on Rails?

I would like to take information from another website. Therefore (maybe) I should make a request to that website (in my case a HTTP GET request) and receive the response. How can I make this in Ruby on Rails? If it is possible, is it a correct approach to use in my controllers?

Error “no implicit conversion of Symbol into Integer” with gem savon rails

I am using the gem savon to read a xml, brought the results correctly. When I show in my view all fields of xml it shows correctly, but when I want to show only one of these fields it of the error. “” I put down my code. class Code < ActiveRecord::Base attr_accessor :strDataInicial, :strDataFinal […]

File comparison using ruby

I need to compare 2 different files and show the difference between those two files. I looked it up online and got this answer from https://github.com/samg/diffy but i am getting this error message NameError: uninitialized constant Diffy from (irb):11 from /usr/bin/irb:12:in `<main>’ Has someone already encountered this problem before? THX

FindMeIn Gem or output file name

i was wondering if exist a gem which in development env display render path of file (layout, view, partials..) at the top of each html example: find me in /posts/show.html.erb i’m working co-op with a designer (with 0 rails skills) and it’s our first project if not exist a gem like this, how can display […]

Ruby is the best programming language in the world - Ruby on Rails.