27 May '12, 6pm

Bookmarked: "Layouts and Rendering in Rails"

To find the current layout, Rails first looks for a file in app/views/layouts with the same base name as the controller. For example, rendering actions from the PhotosController class will use app/views/layouts/photos.html.erb (or app/views/layouts/photos.builder ). If there is no such controller-specific layout, Rails will use app/views/layouts/application.html.erb or app/views/layouts/application.builder . If there is no .erb layout, Rails will use a .builder layout if one exists. Rails also provides several ways to more precisely assign specific layouts to individual controllers and actions.

Full article: http://guides.rubyonrails.org/layouts_and_rendering.html

Tweets

クックパッドのエンジニアがRoombaをRubyでWifi経由で動かすデモをした時のNews ...

ruby5.envylabs.com 29 May '12, 8am

A whole squad of Ruby5 hosts reports from RailsConf 2012 in Austin. We discuss the DHH keynote, Rails on Roombas, the fact...

Rails初期化処理の解説、これ読んどいたら後々役に立ちそう! てかこのサイトすごく役に立ちそ...

guides.rubyonrails.org 30 May '12, 1pm

when 'server' # Change to the application's path if there is no config.ru file in current dir. # This allows us to run scr...

#Rails find of the day: #link_to_if and #link_t...

api.rubyonrails.org 04 Jun '12, 7pm

<%= button_to "New", :action => "new" %> # => "<form method="post" action="/controller/new" class="button_to"> # <div><inp...

@maryloulenhart what about them?

guides.rubyonrails.org 27 May '12, 5pm

Forms in web applications are an essential interface for user input. However, form markup can quickly become tedious to wr...

“Ruby on Railsで複合キーを扱う(1) - Rails 雑感 - Ruby on ...

oiax.jp 03 Jun '12, 9pm

Ruby on Railsでは、データベーステーブルの主キーとしてidというカラムを使うのがデフォルトです。 誤解される方も多いのですが、もちろん主キーの名前は変更できます。たとえば、User モデルに対応するusers テーブルの主キーがui...

Ruby on Rails Guides: Configuring Rails Applica...

edgeguides.rubyonrails.org 02 Jun '12, 10pm

configures Rails itself to serve static assets. Defaults to true, but in the production environment is turned off as the s...

Screencast: Hover Content in Rails and Prototype (Part 1) - Rails Ill.:

Screencast: Hover Content in Rails and Prototyp...

railsillustrated.com 27 May '12, 9pm

Screencast: Hover Content in Rails and Prototype from Erik Andrejko on Vimeo . It is often a good idea to show content whe...

why there is no excuse for @linkedin: tldr for ...

api.rubyonrails.org 07 Jun '12, 2am

for presence of password, confirmation of password (using a "password_confirmation" attribute) are automatically added. Yo...

Double Shot #888: Another jackpot number. [ANN]...

afreshcup.com 29 May '12, 10am

is Mike Gunderloy's software development weblog, covering Ruby on Rails and whatever else I find interesting in the univer...

The Camping Episode | the Ruby on Rails Podcast:

podcast.rubyonrails.org 30 May '12, 10pm

Download: MP3 18 MB | MP4 18 MB Three interviews with developers who use why the lucky stiff’s Camping framework. See also...

@wayoutmind @nlsmith I usually refer to but tho...

guides.rubyonrails.org 05 Jun '12, 1am

Ruby on Rails is not “someone else’s framework.” Over the years, hundreds of people have contributed to Ruby on Rails rang...

What’s New in Edge Rails #23: Week of May 28 -J...

afreshcup.com 04 Jun '12, 4pm

It was a fairly quiet week on the Rails front. Well, if you don't count multiple non-edge dot releases for security fixes....

Rails 3.1: has_secure_passwordメソッド - Rails 雑感 -...

oiax.jp 06 Jun '12, 10am

この前のエントリー では、Rails 3.1で登場した assign_attributes という渋いメソッドについて書きました。 今回紹介するのも渋い新仕様です。その名も has_secure_password 。 いま、User というモデ...

Pluck may be my favorite feature of Rails 3.2

apidock.com 29 May '12, 2am

This method is designed to perform select by a single column as direct SQL query Returns Array with values of the specifie...

ClassMethods#validate - Accepted parameters for...

apidock.com 28 May '12, 6pm

Adds a validation method or block to the class. This is useful when overriding the validate instance method becomes too un...