Ruby on Rails(急!!!!!!在线等)
HTML code:
<%= link_to_if_authorized l(:field_search_title), {:controller => 'books', :action => 'search', :project_id => @project, :title => @title} %>
<%= text_field_tag 'title', @title, :size => 30, :onchange => "#{@title} = this.value" %>
为什么@title取不到值,哪位大虾告诉小弟怎么取值,小弟初学者,万分感谢啊
是的,但是debug出来的@title或者params[:title]都为空值,不知道为什么,难道onchange中的#{@title}取不到值吗?
其实我就是想在link后的url中加入textbox中的value作为参数,还有没有什么办法啊,高手指点小弟啊。
就是类似于js中的document.getElementById(),不知道在ror中有没有这样的方法。
最后还是用js解决了,还是谢谢~
相关问答:
给Javascript和Ruby开个论坛专栏吧!
给Javascript和Ruby开个论坛专栏吧!
给Javascript和Ruby开个论坛专栏吧!
Javascript有专栏的:http://forum.csdn.net/SList/JavaScript
尊敬的用户deping_chen,您好: ......
主要做哪个方面的?是编译型的么?
一门编程语言,不是编译型的
看看这里吧:
http://www.ruby-lang.org/en/
ruby是一门解释型的面向对象语言。最具代表的应用是rails---web快速开发框架
......
新年刚开始,已经有一些生猛的朋友要开始新的职场生涯了,
不知道会不会遇到这样的问题: 想找一份Ruby on rails的工作,我应该知道哪些知识 ?
还好,我并不是想指点你什么,只是想按我的思维方式展 ......
require 'app/configuration'
module RubyAMF
module Configuration
#set the service path used in all requests
# RubyAMF::App::RequestStore.service_p ......
1. 例如在
Person.rb 中
Python code:
class Person
def talk
puts "nihao"
end
end
Student.rb
Python code:
class Student < Person
def talk
puts &quo ......