09 Jan '14, 3pm

Understanding yield - #RoR #Rails #Layout #Rendering

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

Rails Layout Gem

rubyflow.com 10 Jan '14, 1am

generates application layout files using Bootstrap or Foundation. My blog post on the Rails Layout Gem v1.0.1 release give...

Rendering Collections in Rails

rubyflow.com 07 Jan '14, 4am

Rendering Collections in Rails Posted by croaky on January 07, 2014 — 0 comments Partials are a great way to break down co...

Here's the method that hands over an authentici...

api.rubyonrails.org 13 Jan '14, 3am

Controller actions are protected from Cross-Site Request Forgery (CSRF) attacks by including a token in the rendered html ...

We still need a couple more sponsors to make @l...

larubyconf.com 09 Jan '14, 9pm

With out the continued support of the companies below the Los Angeles Ruby Conference would not be the quality it is today...

Rendering Collections in Rails

robots.thoughtbot.com 31 Dec '13, 10pm

Rendering Collections in Rails Joël Quenneville December 31, 2013 rails Partials are a great way to break down complex vie...

Jenkins CI with Rails projects

rubyflow.com 09 Jan '14, 5pm

Jenkins CI with Rails projects Posted by vitobotta on January 08, 2014 — 0 comments I wrote a post on how to set up a Jenk...

テストは文法がむづいわ / “テストの基本構造 - RSpec/Capybara入門 - Ruby on Rails with OIAX”

テストは文法がむづいわ / “テストの基本構造 - RSpec/Capybara入門 - Ru...

oiax.jp 09 Jan '14, 2am

require 'spec_helper' describe 'トップページ' do specify '挨拶文を表示' do visit root_path expect(page).to have_css('p', text: 'Hello ...

Ruby on Rails Guides: Active Record Validations...

guides.rubyonrails.org 09 Jan '14, 4pm

Database constraints and/or stored procedures make the validation mechanisms database-dependent and can make testing and m...

Beginner’s guide to testing Rails apps

robots.thoughtbot.com 14 Jan '14, 6pm

I'm frequently asked what it takes to begin testing Rails applications. The hardest part of being a beginner is that you o...

Getting Started with Rails — Ruby on Rails Guides -

Getting Started with Rails — Ruby on Rails Guid...

edgeguides.rubyonrails.org 19 Jan '14, 9am

Rails is a web application development framework written in the Ruby language. It is designed to make programming web appl...

Explaining RubyMotion views to Rails developers

rubyflow.com 13 Jan '14, 1pm

Yesterday I put out an article explaining Apple's MVC pattern in a way Rails developers could understand, and it got a cra...