06 Oct '13, 6am

Filter in #rails4 is awesome, it saves me lots of time, typing & it follow DRY, beside makes code clean #rails #Ruby

class ClientsController < ApplicationController # This action uses query string parameters because it gets run # by an HTTP GET request, but this does not make any difference # to the way in which the parameters are accessed. The URL for # this action would look like this in order to list activated # clients: /clients?status=activated def index if params[:status] == "activated" @clients = Client.activated else @clients = Client.inactivated end end # This action uses POST parameters. They are most likely coming # from an HTML form which the user has submitted. The URL for # this RESTful request will be "/clients", and the data will be # sent as part of the request body. def create @client = Client.new(params[:client]) if @client.save redirect_to @client else # This line overrides the default rendering behavior, which # would have been to render the "create" view. render "ne...

Full article: http://guides.rubyonrails.org/action_controller_overview....

Tweets

"Learn Ruby on Rails" Kickstarter Campaign

rubyflow.com 07 Oct '13, 4am

"Learn Ruby on Rails" Kickstarter Campaign Posted by DanielKehoe on October 07, 2013 — 0 comments You can help Rails begin...

#Ruby on #Rails: Deploy

rubyonrails.org 05 Oct '13, 12am

The easiest deployment setup for Rails is Phusion Passenger aka mod_rails. It's a module for nginx and Apache that automat...

ここ2日くらいRails4からデフォルトで組み込まれたStrongParametersと格闘し...

guides.rubyonrails.org 18 Oct '13, 10am

class ClientsController < ApplicationController # This action uses query string parameters because it gets run # by an HTT...

Penguin 2.1

Penguin 2.1

freshegg.com 05 Oct '13, 11am

Matt Cutts head of Google’s web spam team announced the news Twitter that the latest iteration of Penguin was launched on ...

@stubbornella is a good read all around, but 3....

guides.rubyonrails.org 03 Oct '13, 11am

Active Record Basics Rails Database Migrations Active Record Validations Active Record Callbacks Active Record Association...

New ebook: Geocoding on Rails, Your Map to Geoc...

robots.thoughtbot.com 03 Oct '13, 2pm

New ebook: Geocoding on Rails, Your Map to Geocoding Rails Applications jdclayton October 3, 2013 rails geocoding If you’v...

Fast tests in Ruby on Rails

rubyflow.com 01 Oct '13, 3pm

Fast tests in Ruby on Rails Posted by manualwise on October 01, 2013 — 0 comments Developers need to be able to run tests ...

どどんとふ指南サイト

ruby-lang.org 11 Oct '13, 2am

RubyConf Australia 2014 発表募集/チケット販売開始のお知らせ RubyConf Australia 2014 が来年2月19-21日の期間、シドニーで開催されます!RubyConf AUは今回が2度目のオーストラリア版R...

@noteu another one

yehudakatz.com 10 Oct '13, 1am

Gabe da Silveira , Posted February 15, 2010, 1:15 pm I gotta give you props for being very diplomatic in this post Yehuda....

"テスト駆動開発(test-driven development; TDD)は21世紀になって広く普及したソフトウェア開発手法です" 未だに20世紀のテストのみをしている自社作業を考えると、泣ける・・・。 /

"テスト駆動開発(test-driven development; TDD)は21世紀になって...

oiax.jp 06 Oct '13, 12pm

連載第1回目は、Ruby on Railsのテストに関連する基本的な概念とツールについて書きます。 そもそも「テスト」とは 日常生活で「テスト」と言えば、たいていは学校や塾の学力試験を意味します。ソフトウェア開発の文脈では、「テスト」は第一義的...

Ruby Cheat Sheets

Ruby Cheat Sheets

rubyinside.com 06 Oct '13, 5pm

is a combination of a cheat sheet and a tutorial. It's six pages long, but features a mini Ruby introduction and tutorial,...

Q3 Review: A Bottom For Clean Energy Developers?

Q3 Review: A Bottom For Clean Energy Developers?

altenergystocks.com 07 Oct '13, 12pm

In the third quarter, clean energy stocks in general continued their upward trend, turning in a 27% gain for the quarter a...

How to maintain ruby project that works with Ru...

rubyflow.com 05 Oct '13, 3pm

How to maintain ruby project that works with Ruby and JRuby Posted by shvets on October 05, 2013 — 0 comments I have littl...

Learning about #self in #Ruby: @rubylearning is...

rubylearning.com 03 Oct '13, 4pm

Self - The current/default object <Modules/Mixins | TOC | Constants > At every point when your program is running, there i...