[Rails] acts_as_taggable_on_steroids form

2009-03-04 Thread Katsuo Isono
Hi, i need help with a way to add tags to titles. i can not enter any values to tags and tagging tables this way. title_new.rhtml <% form_tag :action=>'title_create' do %> Name:<%= text_field 'title', 'name' %> Tags (seperate with comma ','): <%= text_field 'title','tag_list'%> <%= submit_tag '

[Rails] Re: WEBrick error - exceeded the maximum permissible length

2008-10-21 Thread Katsuo Isono
Yes, that was it. Thank you very much. Got to be more careful. -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email

[Rails] WEBrick error - exceeded the maximum permissible length

2008-10-20 Thread Katsuo Isono
Hi I have the following error on the browser. Can anyone tell me how to change the configuration on Webrick to solve this problem? Secure Connection Failed An error occurred during a connection to localhost:3000 error :-12263 SSL_ERROR_RX_RECORD_TOO_LONG "SSL received a record that exceeded t

[Rails] Re: datetime select

2008-10-10 Thread Katsuo Isono
I've setteled for the following and works great! @orders=Order.find(:all,:conditions => ['created_at BETWEEN "?" AND "?"', start_date.strftime('%Y-%m-%d %H:%M:%S'), end_date.strftime('%Y-%m-%d %H:%M:%S')]) I am using 1.8 but somehow just start_date and end_date without formatting did not work.

[Rails] Re: datetime select

2008-10-09 Thread Katsuo Isono
Thanks for reply Shripad; Db is Mysql. Following is the sql running for the last query: 'select paydate,payamount,credit,paymenttype,memberid from payments where paydate between '2008-10-09T14:22:00+00:00' AND '2008-10-10T14:22:00+00:00' Format in db is 2003-10-14 12:37:51 Katsuo -- Posted

[Rails] Re: datetime select

2008-10-07 Thread Katsuo Isono
Thanks Shripad >From your advice I've got the following. It worked fine until I added hours and minutes to the range which are attributes 4i and 5i. I don't get any error messages but don't get values from db either. Datetime format in the db is 2003-10-14 12:37:51. Any suggestions would be ap

[Rails] Re: updating referenced table

2008-10-06 Thread Katsuo Isono
I got the result with the following: def update_status @books=Book.find(:all) for book in @books Record.update_all("status='read' where name='#{book.name}'") end end Many thanks FB -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You r

[Rails] datetime select

2008-10-06 Thread Katsuo Isono
I am having difficulty passing datetime values to a method in the controller. I get sql syntax error from the following. Can someone advise me what I am doing wrong? my view: <%= start_form_tag :action => 'time_range' %> <%= datetime_select("sd", "time_range") %>

[Rails] updating referenced table

2008-10-05 Thread Katsuo Isono
I have the following two tables books and records fields for books table: id, name fields for records table:id, name, status I would like to insert value 'read' to status field in records table when name matches name in books table. Tried the following but no luck. I would appreciae if someone c

[Rails] Re: passing variable between methods

2008-09-28 Thread Katsuo Isono
Thank you very much. 100% what I needed. So, session[:member] = nil kills the session each time name action is processed. -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[Rails] passing variable between methods

2008-09-28 Thread Katsuo Isono
How can I pass @member varible from def member to def name and insert it into name_id? These methods are in the same controller. def member @member = params[:member] || '' member = @member end def name name_id = @member end -- Posted via http://www.ruby-forum.com/. --~--~-~