Skip to content

Restless variables are ones that hate hashes. So they formed a group and now live as instance variables

License

Notifications You must be signed in to change notification settings

lukedupin/restless_variables

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RestlessVariables
=================

Restless_Variables are a different mind set.  Instead of the division of
instance variables and user posted variables feeling clunky, they now feel 
equal.  This is done by a special naming scheme that changes the rules about
how web programing is done.


Example
=======

Inside application.rb

require 'restless_variables'

class ApplicationController < ActionController::Base
    #Called by the user to to convert thier variables
  around_filter :restless_variable_filter
  include RestlessVariables
end

Now if a form posts the variable "username" under the login form.
@_login.username can be used instead of params[:login][:username]

Storing sesison variables is a snap!
instead of 
	session[:uid] = 8
use this
@__uid = 8

About

Restless variables are ones that hate hashes. So they formed a group and now live as instance variables

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages