Quick way to adding classes to Ruby links tags
In order to add classes to Ruby on Rails links, we need to enclose it in curly brackets as shown in the example below
<%= link_to "adding new posts", new_post_path, { :class=>"btn btn-default" } %>
In order to add classes to Ruby on Rails links, we need to enclose it in curly brackets as shown in the example below
<%= link_to "adding new posts", new_post_path, { :class=>"btn btn-default" } %>
Set of Ruby Object Oriented Programming Language tutorials that cover such topics as Ruby strings, …
Rails Framework tutorial teaches you how to utilize de facto framework of choice for Ruby developme…
“If an object quacks like a duck just go ahead and treat it as a duck” – this fun…
Ruby uses the =~ operator to check any given string against regular expression. For example, a stri…
Every last digit of any credit card is a check sum digit that is determined by all digits in front …
Ruby Programming Language has built in support for Arrays. Arrays help you define some of the compl…
Hashes are very similar to arrays in Ruby and hashes interface is similar to Ruby array interface. …
Ruby is very unique language when it comes to code blocks. You can simply pass a code block to a me…