Rails2

select_all

I tried to add "select all" button to check box.HTMLselect all'hoge();' -%>JavaScript for test. function hoge() { alert("ようこそ!"); } but window does not open when checked select all check box.error message;select_all is not a function.…

tmpdirライブラリ

るびま テンポラリディレクトリ (一時ディレクトリ) を扱うためのライブラリです。一般的には、何か一時的な作業をするディレクトリとして "/tmp" などを使うべきではありません。 OS によっては存在しなかったり、使い方を間違えるとセキュリティホールの原…

ERROR: Error installing rmagick:

when I tried to install rmagick, gem install rmagickerror occured Building native extensions. This could take a while... ERROR: Error installing rmagick: ERROR: Failed to build gem native extension. /opt/ruby-enterprise-1.8.7-2010.02/bin/r…

get value from radio button

<% @hoge.hages do |hage| -%> <div lass='select_radio_hage'> <%= radio_button_tag "hages", hage.id, false, -%> <%= hage.name -%> </div> <% end -%>jQuery("#hoge_list").navGrid('#hoge_pager',{ edit:false,add:false,del:false,search:false }).navButtonAdd('#hoge_pager',{ caption:"…

jqGrid; add export button to table

views/hoges/show.html.erb <table id="hoge_list" class="scroll"></table> <div id="hoge_pager" class="scroll"></div>javascripts part jQuery("#hoge_list").navGrid('#hoge_pager',{ edit:false,add:false,del:false,search:false }).navButtonAdd('#hoge_pager',{ caption:"", title:"Export to CSV", buttonicon:"u…

jqGrid; no method error; total_entries

users_controller.rb in def index respond_to do |format| format.html # index.html.erb format.json { render :json => users.to_jqgrid_json([:id, :pseudo, :firstname, :lastname, :email, :role], params[:page], params[:rows], users.total_entries…

restful_authentication

In the case of two setting files for new user account varidation,1, vendor/plugin/restful_authentication/lib/authentication.rb self.login_regex = /\A\w[\w\.\-_]+\z@/ # ASCII, strict2, lib/restful_authentication/authentication.rb self.login…

Rails2; will_paginate params

{:hoge=>nil} -%>