Displaying 4 results from an estimated 4 matches for "validate_opt".
Did you mean:
validate_op
2006 Jan 06
6
Help with TextSearch :all and MySQL
Hi,
I really need help with making the ''searches_on :all'' in Duane Johnson''s
TextSearch work with MySQL (not sure if it works with other db''s).
http://wiki.rubyonrails.com/rails/pages/TextSearch
I realize that there are other search packages out there. But this
particular solution best fits my small needs of searching a small
database.
I''ve gotten
2008 Feb 08
0
javascript parameter problem with onsubmit
...:
<script>
var param1 = ''field3'';
</script>
<script>
var param2 = ''field3'';
</script>
<script>
var param3 = ''field3'';
</script>
<%= submit_tag ''Next'', {:onsubmit => ''return
validate_options(param1,param2,param3);''} %>
function validate_options(params) {
alert (params);
return false;
}
This does not seem to print out value param3. I only get that popup
saying [object HtmlFormElement]
Its done like this since that form creating those param1 2 3...
2006 May 23
5
Wierd pagination problem - Unknown options: order?
I am trying to use pagination with the order option. I am following
examples I''ve seen all over the web, but I am getting an error. My code
seems simple:
def list
@upload_pages, @uploads = paginate :uploads, :per_page => 20, :order
=> ''id''
end
Yet I keep getting this error:
___________________________________________
2011 Sep 08
1
Magic Multi Connections gem + Rails 3.1
...from /Users/nopik/.rvm/gems/ruby-1.9.2-p180@christmas/gems/
activesupport-3.1.0/lib/active_support/core_ext/hash/keys.rb:43:in
`assert_valid_keys''
from /Users/nopik/.rvm/gems/ruby-1.9.2-p180@christmas/gems/
activerecord-3.1.0/lib/active_record/associations/builder/
association.rb:29:in `validate_options''
from /Users/nopik/.rvm/gems/ruby-1.9.2-p180@christmas/gems/
activerecord-3.1.0/lib/active_record/associations/builder/
association.rb:20:in `build''
from /Users/nopik/.rvm/gems/ruby-1.9.2-p180@christmas/gems/
activerecord-3.1.0/lib/active_record/autosave_association.rb:127:i...