[Rails] bundle_fu making my app very slow

2009-02-11 Thread zero0x
Hi, I tried the bundle_fu plugin, and as of moving to production, I noticed, that my views render in 70ms without bundle_fu, and about 1800ms with it! It's not always 1800 but most of the time. Is this ok? Shouldn't I turn some caching in bundle_fu to on?

[Rails] Question about testing

2009-02-04 Thread zero0x
Hi, I have a question about testing ... It's controller test ... First I do something like this: xhr :get, :status, :id = homeworks(:one).id, :status = done The :status action sets homework's length_done to length. So I do this: assert = homeworks(:one).length ==

[Rails] Re: Question about testing

2009-02-04 Thread zero0x
an error message when not created successfully do end HTH -Brian On Wed, Feb 4, 2009 at 9:06 AM, zero0x zero0...@gmail.com wrote: Hi, I have a question about testing ... It's controller test ... First I do something like this: xhr :get, :status, :id = homeworks(:one).id, :status

[Rails] Guide to RESTful Rails?

2009-01-31 Thread zero0x
Hi, I've bought Peepcode's RESTful Rails screencast. It's pretty interesting - and there are a couple of things I didn't know at all. Please where do I find some complex tutorial to RESTful Rails? In API? Or where? Thank you --~--~-~--~~~---~--~~ You received

[Rails] MSIE doesn't work with format.html

2009-01-29 Thread zero0x
Hey there .. This is part of restful_authentication: def access_denied respond_to do |format| format.html do store_location redirect_to :controller = session, :action = new end format.any do request_http_basic_authentication 'Web

[Rails] Re: How to get current_user when I'm in model

2009-01-24 Thread zero0x
(params[:id]) works = @user.my_works puts works #(u'll get the works that are related to u) end On Sat, Jan 24, 2009 at 1:00 PM, zero0x zero0...@gmail.com wrote: Hey there, I have restful_authentication. I can do this in my controller, view, etc current_user But I can't do it when

[Rails] restful_authentication - using http auth in IE

2009-01-24 Thread zero0x
Hi, my restful_authentication plugin is always logging in using http auth. But only in IE. In Safari/Firefox in displays a form. Where do I tell it to use html login form? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[Rails] How to get current_user when I'm in model

2009-01-23 Thread zero0x
Hey there, I have restful_authentication. I can do this in my controller, view, etc current_user But I can't do it when I'm in model. I need to put it to model, because there's method like my_works - which finds all works of current user. Please help someone. Thank you

[Rails] Re: RoR 2.2.2 and MySQL -- HELP

2009-01-08 Thread zero0x
Hi, I had to install 32 bit MySQL in order to get Rails running on my Mac. On Jan 7, 5:16 pm, jabauer jab...@gmail.com wrote: On Monday I upgraded from Rails 1.2.6 to 2.2.2 (also upgrading to gem 1.3.1) but in the process have lost the ability to connect with my mysql database.  After finally

[Rails] Re: How to get select_tag value in controller?

2008-12-29 Thread zero0x
I suppose you're using prototype, so you just need to get the value of the select box. $(id-of-the-element).getValue() On 28. Dec., 15:04 h., Zhao Yi rails-mailing-l...@andreas-s.net wrote: Frederick Cheung wrote: You have to tell remote function what to submit, it's not going to guess

[Rails] Re: One layout for entire apps

2008-12-29 Thread zero0x
You can also change the layout by calling layout 'layout' from the controller class. Joshua Partogi napísal(a): Dear all, I am still new in rails, and I realised that in rails each model has its own layout/template located under layouts/ Now my question is, is it possible to have only one

[Rails] php's __call for ruby? or better approach?

2008-12-28 Thread zero0x
Hi Rubyists! I'm quite new to Ruby/Rails thing, so please be patient with me :) (skip to next if you want to quickly see the problem) I am learning by creating something like timetable application (like in school). There are days 1-5 and lessons 1-8. I have to db tables,

[Rails] Re: How to get select_tag value in controller?

2008-12-28 Thread zero0x
Check source code and find select name=xxx The xxx value is what you can access with params[:xxx] -- Good advice: Download Firebug plugin for Firefox, which shows all the communication between page and server, and you'll see all the POST variables with the values :) On 28. Dec., 14:08 h.,

[Rails] Re: php's __call for ruby? or better approach?

2008-12-28 Thread zero0x
frederick.che...@gmail.com wrote: On 28 Dec 2008, at 13:04, zero0x wrote: So I created a new class, called timetable, and I would like to create methods like 1_1, 1_1=, 1_2, 1_2= - getters and setters for each lesson of each day. Well you'll have to pick different names

[Rails] Re: php's __call for ruby? or better approach?

2008-12-28 Thread zero0x
LOL, send method does the job :) I didn't think it would be that simple! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to

[Rails] Re: Should I learn Ruby on Rails? What book?

2008-12-25 Thread zero0x
is 'Getting Started with Rails' That along with all the others can be found here:http://guides.rails.info/index.html A great place to start HTH - Dave Porter On Dec 25, 9:52 pm, zero0x zero0...@gmail.com wrote: Hey there, I'm a web developer, I've already mastered (well at least it sounds