17 Apr '13, 4am

Ruby on Rails Guides: Action Controller Overview

class ClientsController < ActionController::Base # 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.unactivated 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 :a...

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

Tweets

Ruby on Rails Guides: Ruby On Rails Security Gu...

guides.rubyonrails.org 19 Apr '13, 1pm

The threats against web applications include user account hijacking, bypass of access control, reading or modifying sensit...

Modifying the order of Datetime picker in Rails

api.rubyonrails.org 16 Apr '13, 5am

:use_month_numbers - Set to true if you want to use month numbers rather than month names (e.g. "2" instead of "February")...

perlu baca: https://t.co/3RPAJ9miKZ then take a...

anwaribrahim.com 26 Apr '13, 4pm

Join Anwar now Email Spread the word Shout Poll Contribute Now Paid for by Anwar Ibrahim for Malaysia Copyright ©2013, All...

@_atton resque worker なるものが処理してくれる

oiax.jp 19 Apr '13, 7am

#!/usr/bin/env ruby require File.expand_path('../../config/application', __FILE__) Rails.application.require_environment! ...

Integration testing in the absurd land of Rails...

guides.rubyonrails.org 15 Apr '13, 12pm

Testing support was woven into the Rails fabric from the beginning. It wasn’t an “oh! let’s bolt on support for running te...

NowBrowsing: Test::Unit と RSpec と Shoulda - Rai...

oiax.jp 18 Apr '13, 2am

昨日の記事 続・Rails 3.x 時代のテストフレームワーク では、Rails で使用できるテストフレームワークの基礎知識と相互関係についてまとめました。 今日は、Test::Unit と RSpec と Shoulda を具体的に比較してみ...

Free ACTION buses to ANZAC Day Dawn Service, 25...

action.act.gov.au 17 Apr '13, 6am

Free chartered buses will service the ANZAC Day Dawn Service. Services will depart from Gungahlin, Tuggeranong, Woden, Cit...

Tesla loses court battle with former exec, faces further class action

Tesla loses court battle with former exec, face...

green.autoblog.com 17 Apr '13, 6pm

The wheels of justice grind exceedingly slow and fine, but, if you're demonstrably in the right, and have (a lot) of patie...

Double Shot #1110: Parser – A fresh parser for ...

afreshcup.com 18 Apr '13, 10am

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

Kate Spade Call To Action Straw Tote: Did I mention spring has yet to arrive? Yep, I am sure I have mentioned

Kate Spade Call To Action Straw Tote: Did I men...

bagbliss.com 17 Apr '13, 8pm

Did I mention spring has yet to arrive? Yep, I am sure I have mentioned it. The fact that it has been ridiculously cold ou...

New post: Building a replacement for a broken dehumidifier controller

New post: Building a replacement for a broken d...

hackaday.com 14 Apr '13, 7pm

We’ve thought of doing a project like this ourselves as the dehumidifier we ordered online runs the fan 24/7 no matter wha...

Diary of a Rails rescue project, part 2: Testin...

everydayrails.com 16 Apr '13, 4pm

Diary of a Rails rescue project, part 2: Testing April 16, 2013 As mentioned previously , I’ve been spending spare cycles ...

A new blog post on our brew guide catalog and s...

hasblog.co.uk 17 Apr '13, 7pm

I know lots of you have enjoyed our brew guides, this makes me very happy. We have used Blip for a few years now as our vi...

@dzaporozhets I mean this So you should enable ...

guides.rubyonrails.org 15 Apr '13, 5pm

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

#Sequel for #ActiveRecord users, great resource...

sequel.rubyforge.org 16 Apr '13, 7am

and ActiveRecord use the active record pattern of database access, where model instances are objects that wrap a row in a ...