search for: choonkeat

Displaying 13 results from an estimated 13 matches for "choonkeat".

2006 May 18
1
mime yaml
..."/", :handler => rails The custom mime will only be picked up if I change that line to: uri "/", :handler => rails({:mime => mime}) What am i missing here? Why isn''t the ''mime'' local variable used? Thanks for any enlightenment -- choonkeat http://www.rssfwd.com/
2006 Jul 17
1
FF1.0 + Prototype Ajax not working in 0.3.13.x
...ENT (127.0.0.1): Sent body size 2 but declared Content-Length: 0 > Anyways, to have a (Firefox 1.0+Prototype)-friendly Mongrel, just change line 203 to: if remain == 0 || remain < 0 > In case anyone else has problems. Hopefully other parts of the sky don''t fall due to this. -- choonkeat http://blog.yanime.org/ http://www.rssfwd.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20060717/680a3fde/attachment.html
2006 May 30
3
extra attributes in habtm
...utes in join table. But rather, it was meant to make habtm resilient against existence of extra attributes messing up with the expected, normal operations of habtm - after ur classes are setup with habtm, they''ll continue to run nicely even if schema has to change on join_table. Cheers -- choonkeat _______________________________________________ Rails-core mailing list Rails-core@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-core
2006 Jun 30
0
Fwd: Mongrel-users Digest, Vol 5, Issue 22
...bject line so it is more specific than "Re: Contents of Mongrel-users digest..." Today''s Topics: 1. Re: Time To Pick the Mongrel BUGS Mascot! (Zed Shaw) 2. Re: [Rails] Time To Pick the Mongrel BUGS Mascot! (Pratik) 3. Re: [Rails] Time To Pick the Mongrel BUGS Mascot! (choonkeat) 4. Re: [Rails] Time To Pick the Mongrel BUGS Mascot! (philippe lachaise) 5. Re: Time To Pick the Mongrel BUGS Mascot! (Jason A. Hoffman) 6. Re: Time To Pick the Mongrel BUGS Mascot! (basaah) 7. Re: Time To Pick the Mongrel BUGS Mascot! (Jason Young) 8. Re: Time To Pick the Mon...
2006 Jun 04
0
[SUMMARY] Rails Core Weekly May 29 - June 4
...would suggest ) or 2. the window or field/display with as the mysql adapter will make you think. There''s an unapplied patch #4353 that can put an end to the suspense. Tom Ward is still waiting for the list to respond. [ thread: http://dev.rubyonrails.org/changeset/4379 ] Some days ago choonkeat alerted the list that patch #5216 actually makes habtm resilient against the existence of extra attributes messing up the normal ops of habtm. However habtm is reaching the end of its product lifecycle (i.e. don''t use it anymore, use has_many :through, affectionately known as hmt) and this...
2007 Oct 05
7
Trouble with text_field_tag
I am trying to implement a basic login page: login.rhtml 1 <fieldset> 2 <% form_tag do %> 3 <label for="name">Name:</label> 4 <%= text_field_tag :name, params[:name] %> 5 <label for="password">Password:</label> 6 <%= password_field_tag :password, params[:password] %> 7 <%= submit_tag
2006 Aug 10
1
Passing parameters defined in a function or something
Hi, I have method I want to call ... it can receive * number of parameters. I also have 3 parms that I want to pass often, so I have defined them in a separate function: def my_params { :parm1 => 1, :parm2 => 2, :parm3 => 3 } end And I want to call my method like this: mymethod :parm4 => 4, my_params Now - this doesn''t work - as my_params is a hash of params, which
2006 Jun 14
0
krjs plugin: a different way of doing RJS
...in your controllers instead of explicitly doing remote_form_tag or link_to_remote in the views templates. You''ll only need to continue using form_tag, text_field_tag et al to get the benefits. Markaby supported. I''m finding it useful (duh), pls feel free to comment. Cheers -- choonkeat - http://blog.yanime.org/ - http://www.rssfwd.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060614/1771fe39/attachment.html
2006 Jun 14
1
reset_session when Ruby goes down
Hi, In my web application we have implemented the session and it works fine. ie. it prompts for the userid/password when ever we give the URL by opening a new IE window. i.e it goes through the session and see if the :user_id is present in the session if not it prompts to log-in again. But my problem is say if we "kill" the WebRICK abruptly by pressing ^C and say my browser window
2007 Mar 06
1
Smart forms in Rails?
I am working on a project that needs a "Smart Form" type of system. That is, we need to have a Form Template system that chooses what elements of the form are displayed based on how the user answers other elements of the form. Does that make sense? Can anyone point me in the right direction? -- Posted via http://www.ruby-forum.com/.
2006 Aug 10
3
Radio buttons refusing to load checked...
Hi, Having big problems with radio buttons that just don''t make sense: <%= radio_button "events", "impact_type", true %> Positive <%= radio_button "events", "impact_type", false %> Negative This should create two radio buttons with the first one checked by default, right? Cos it doesn''t :( Any ideas would be great, Thanks,
2006 Mar 13
2
Excessive Errno::EBADF with dispatch.fcgi
I''m running Ruby on Rails via FastCGI in an Apache environment, and I get the following error, a lot. (from log/fastcgi.crash.log) [13/Mar/2006:15:52:51 :: 94704] Dispatcher failed to catch: Bad file descriptor (Errno::EBADF) /usr/local/lib/ruby/site_ruby/1.8/fcgi.rb:38:in `close'' /usr/local/lib/ruby/site_ruby/1.8/fcgi.rb:38:in `each''
2006 Aug 09
7
changing find method
Hi, i was wondering if there was a nice clean way(after all, it is ruby) to change the find method of a certain model/class (Page) so that if i wanted to use a find method on a @page instance it would return only specific rows from the table(if the page.published == true/false: the pages table looked like SQL: ... id int not null auto_increment, published tinyint(1) not null, something