skip to main
|
skip to sidebar
deeply love rubyOnRails
2008年5月8日 星期四
flash
the value stored in the flash in the first request is available in the second request.
After processing 2nd request, the value is removed from flash
main use:
error message
ex:
def test
flash[:note] = "error"
redirect_to :action=>test2
end
test2.html.erb
<%= @flash[:note] %>
沒有留言:
張貼留言
較新的文章
較舊的文章
首頁
訂閱:
張貼留言 (Atom)
標籤
database
rails application
rails config
rails controller
rails general
rails model
rails view
ruby
software
my other website
deeply love activity
deeply love linux
deeply love watch & listen
deeply love java
deeply love html & css
deeply love javascript & ajax
deeply love apple & mac
網誌存檔
▼
2008
(104)
►
6月
(7)
▼
5月
(77)
symbol
methods
compare: equal?, Comparable module
true, false & nil
for, each
loop, while, until
case
private & protected methods
global variable
instance variable
class & self
:: access
method_missing
super keyword
root module & root class
attr_reader, attr_writer,
respond_to?
object_id
the data controller can access
mysql command
rails source code location in mac
require vs load
puts and print
gets
paginate
helper
h( )
xml template
cache
verification
redirect_to
logger
group controllers into module
rails program load sequence
flash
session & cookie
controller action, view tempelate, render
form helper
save & save!
update_attributes, updat & update_all, save
find method in rails
ActionMailer & gmail
access table's column in the model
before_create
filter
mongrel
link
layout
rails routing
generate command, rails command, rake command, c...
erube
cgi
send
show message with debug
xml library
<=>
test
ri command
alias
system
method naming ( end with ? or ! )
change value to string( interpolation)
file methods
environment variable
comment
if , else, elsif, unless
plugin install
textmate & rails 2.0
textmate shortcut
visor : terminal access
date and time method
block and yield
here doc
required, optional, default-valued parameters
block, proc and &
lambda and proc
IDE
►
4月
(20)
關於我自己
彼得潘
App程式設計入門 iPhone . iPad 第二版 2012.2 App程式設計入門 iPhone . iPad 第一版 2010.11
檢視我的完整簡介
沒有留言:
張貼留言