link_to image tag. how to add class to a tag?
I am using link_to img tag like following <%= link_to image_tag("Search.png", :border=>0, :class => 'dock-...
Can somebody show me graphical representation of rails classes hierarchy??
I'm a beginner and am confused by the structure of ruby on rails. Everywhere I've found it described in a way that i...
How do I comment out ERB in Rails? [duplicate]?
This quest...
Floating Column(Max/Min) Graph in ROR?
I need to create a graph as shown in the image below. I have the values for the upper limit, lower limit and the ave...
How to rollback a specific migration??
I have the following migration file db\migrate\20100905201547_create_blocks.rb How can I specifically rollback that...
How do I parse JSON with Ruby on Rails? [duplicate]?
This quest...
TinyTDS: Server name not found in configuration files?
I keep seeing this error, and I am unable to connect to the database on the remote server. I am given a connection ...
Change rails version used by rvm?
Here are my local gems : $ gem list *** LOCAL GEMS *** actionmailer (4.0.0, 3.2.14) actionpack (4.0.0, 3.2.14) ac...
Rails 4: List of available datatypes?
Where can I find a list of data types that can be used in Ruby on Rails 4? Such as text string integer float ...
Updating several records at once in rails?
In a rails 2 app I'm building, I have a need to update a collection of records with specific attributes. I have a na...
'sudo gem install' or 'gem install' and gem locations?
Running 'sudo gem list --local' and 'gem list --local' give me differing results. My gem path is set to my home fold...
Rails return JSON instead of HTML?
I have a ruby on rails web app, but I want it to act like a web service and instead of HTML to return JSONs. I want ...
Rails 3. How to get the difference between two arrays??
Let’s say I have this array with shipments ids. s = Shipment.find(:all, :select => "id") [#<Shipment id: 1...
Write to rails console?
When I want to try or debug smthing I run rails console and do some stuff there. I can print some text or variables ...