28 Feb '14, 7pm

@josh_hepworth has_secure_password and filtering: don't build them yourself.

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

@josh_hepworth has_secure_password and filterin...

guides.rubyonrails.org 28 Feb '14, 7pm

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

Knock ‘Em Down, Build ‘Em Up Workout: Good morning! Happy Friday! I have a delicious breakfast and a full-body...

Knock ‘Em Down, Build ‘Em Up Workout: Good morn...

carrotsncake.com 28 Feb '14, 1pm

As for the rep scheme, here’s how you do this workout: Start with 12 reps of each exercise and then “knock ‘em down” one r...

Believe it! How to Build Green At No Added Cost

buildinggreen.com 01 Mar '14, 6am

How to Build Green At No Added Cost Reduced operational costs, improved occupant health and productivity, and buildings wi...

Introducing Lotus::Controller

rubyflow.com 24 Feb '14, 12pm

Introducing Lotus::Controller Posted by jodosha on February 24, 2014 — 0 comments Lotus development is going well. This mo...

Bankrupt Mt. Gox Facing Class-Action Suit Over ...

mashable.com 28 Feb '14, 9pm

The mountain of trouble that has been piling up for Mt. Gox just got even larger. Once the largest Bitcoin exchange in the...

2014 Toyota Prius Prius Plug-in Hybrid Overview

2014 Toyota Prius Prius Plug-in Hybrid Overview

hybridcars.com 28 Feb '14, 5am

Vehicle Facts 51 / 49MPG 4.6 / 4.8L/100km BODY TYPE: Hatchback BASE MSRP: $29,995 Based upon the Prius Liftback, the plug-...

Bankrupt Mt. Gox Facing Class-Action Suit Over ...

mashable.com 01 Mar '14, 9am

The mountain of trouble that has been piling up for Mt. Gox just got even larger. Once the largest Bitcoin exchange in the...

Trina Solar to build 2 MW #solar power project ...

solarindustrymag.com 27 Feb '14, 4pm

Trina Solar Ltd. has signed a contract with Fresh Fruits Co., a food storage and logistics company in Amman, Jordan, to bu...

Wait... WAT? Russia could build a train that wo...

grist.org 26 Feb '14, 7am

Amazing Maps posted this, uh, amazing map of a cross-Bering rail connection: Proposed Russia to North America rail connect...

A 3-step sustainability action plan for business leaders

A 3-step sustainability action plan for busines...

greenbiz.com 25 Feb '14, 1pm

Company executives have moved way past questioning why sustainability is important. Instead, leaders ask how to transform ...

Build Your Own Underground Greenhouse

Build Your Own Underground Greenhouse

jetsongreen.com 23 Feb '14, 7am

Growing food in the colder months of the year is a challenge, and growers in colder climates that want to extend the crop-...

Robot Controller More Fun Than an Actual Wii-U

Robot Controller More Fun Than an Actual Wii-U

hackaday.com 15 Feb '14, 3pm

The photo above is a bit deceiving because the unit actually has quite a bit of depth. Despite that, the cleanliness of th...

.@UKGBC report makes economic case for zero carbon commercial and public buildings:

.@UKGBC report makes economic case for zero car...

ukgbc.org 27 Feb '14, 9am

UK-GBC Task Group Report: Building Zero Carbon – the case for action Author: UK-GBC Date published: 27 Feb 2014 Download s...