24 Apr '12, 2pm

TIL: about #simple_format in #Rails.

Returns text transformed into HTML using simple formatting rules. Two or more consecutive newlines(\n\n ) are considered as a paragraph and wrapped in <p> tags. One newline (\n ) is considered as a linebreak and a <br /> tag is appended. This method does not remove the newlines from the text . You can pass any HTML attributes into html_options . These will be added to all created paragraphs. Options :sanitize - If false, does not sanitize text . Examples my_text = " Here is some basic text...\n ...with a line break. " simple_format ( my_text ) # => "<p>Here is some basic text...\n<br />...with a line break.</p>" more_text = " We want to put a paragraph...\n\n ...right there. " simple_format ( more_text ) # => "<p>We want to put a paragraph...</p>\n\n<p>...right there.</p>" simple_format (" Look ma! A class! ", :class => ' description ') # => "<p class='description'>Look ma...

Full article: http://apidock.com/rails/ActionView/Helpers/TextHelper/si...

Tweets

Rails Internals: Secure Password

rubyflow.com 24 Apr '12, 7pm

Rails Internals: Secure Password Posted by oscardb on April 24, 2012 — 0 comments Another article in the Rails internals s...

Sam Ruby: Wunderbar on Rails

intertwingly.net 24 Apr '12, 10pm

Wunderbar on Rails Tue 24 Apr 2012 at 21:12 Usage: add wunderbar and nokogiri to your Gemfile and run bundle install . Tem...

Rails Rumble 2012 задерживается

rubyflow.ru 24 Apr '12, 12pm

Команда Rails Rumble опубликовала в своем блоге сообщение о том, что состязание этого года откладывается до конца лета. Из...

Rails Searchable API Doc:

Rails Searchable API Doc:

railsapi.com 25 Apr '12, 1am

Rails S earch able API Doc beta :) Smart search, beautifully packed Rails v3.0.8rc1 or Rails v3.0.8rc1 + Ruby v1.9.2 or bu...

Discount coupon for the Rails Tutorial (2nd Edi...

rubyflow.com 24 Apr '12, 2pm

Discount coupon for the Rails Tutorial (2nd Edition) Posted by AntonioCangiano on April 24, 2012 — 0 comments Michael Hart...

Environment specific robots.txt with the Roboto...

rubyflow.com 24 Apr '12, 10am

Environment specific robots.txt with the Roboto Rails Engine Posted by dpickett on April 24, 2012 — 0 comments Introducing...

Ruby on Rails 3.2 を Ubuntu にインストールする手順をかなり丁寧に説明...

oiax.jp 22 Apr '12, 1pm

Ubuntuで初めてRubyやRailsに挑戦する方のために、最新の Ruby 1.9.3 と Ruby on Rails 3.2 のインストール手順をやや詳しく説明します。 なお、本稿ではRubyのインストールにrbenvを利用します。apt...

New Rails Issue: Users Guide is ... https://t.c...

guides.rubyonrails.org 23 Apr '12, 8pm

is a connection between two Active Record models. Associations are implemented using macro-style calls, so that you can de...

'Ruby on Rails 3.0 日記' を勉強中。ちょっと古いような気もするけど。

oiax.jp 22 Apr '12, 7am

Ruby on Rails 3.2 を Ubuntu にインストールする手順をかなり丁寧に説明してみました 【Rails 雑感】 (2012/04/22) Ruby on Railsで複合キーを扱う(7) -- 補遺 【Rails 雑感】 (2...

Rails for API applications (rails-api) released

rubyflow.com 21 Apr '12, 12am

Rails for API applications (rails-api) released Posted by wyeworks on April 21, 2012 — 0 comments Rails for API applicatio...