打印

[问题求助] 在controller层怎么改变views层控件的值?

在controller层怎么改变views层控件的值?

在controller层怎么改变views层控件的值?

TOP

EG

exs_controller.rb

def sa
            @strValue = "hello"
         end


TOP

exs_controller.rb

def sa @strValue = "hello" end


sa.rhtml

<input type="text" name="txtSa" id ="txtSa" value=<%=@strValue%> />


TOP

EG

exs_controller.rb

def sa @strValue = "hello" end


sa.rhtml

<input type="text" name="txtSa" id ="txtSa" value=<%=@strValue%> />


TOP

2008-11-23 23:25 Crawled by CCBot/1.0 (+http://www.commoncrawl.org/bot.html) @38.103.63.61