similar to: access to application.rb methods

Displaying 20 results from an estimated 14000 matches similar to: "access to application.rb methods"

2006 Jul 12
11
ruby rails performance
Hi- We just finished our app and I tested for performance with httperf. Our setup is browser -> apache2.2-> mod_poxy balancer-> mongrel cluster -> 3 mongrel servers. I have noticed that the total request per second is is about 7.5. When I increase the no of mongrel to 5, it inches up to 8 req/s. My question is how bad or good this number is? We are on a old dell 2400 machine
2006 Jun 20
3
Saving an array of objects
How do I save an array of obects into the database? For now I am doing for a in array a.save end. I am sure there must be an easy way to do this. -- Posted via http://www.ruby-forum.com/.
2006 Jan 08
6
J2EE equivalent
Gang- 1. Is there anything in Ruby that handles the .properites files similar to the J2EE application servers. Or do I need to define all of the properties as constants? 2. Is there anyway I can load some of my classes (such as singletons) during the startup? I am looking for the startup classes that J2EE containers provide. Thanks -- Posted via http://www.ruby-forum.com/.
2006 Jun 28
5
Production deployment
Gang- We are getting ready to launch our ROR application; the last item remaining is the deployment platform. For testing, we had used Apache + MOD_FastCGI. I am not that impressed with it; sometimes it has strange effects. For example, when we start the application, for about 5 minutes or so, the app is very unstable and it gets better over time. My questions is .. should I go with (1)
2006 Jun 30
1
running in production mode
I am running apache with mod_fastcgi on Linux - I would like to run my app in production mode, but I could not. Following is what I have in my httpd.conf. Can someone tell me why it does not recognize the env variable for production? The app always runs under development mode i.e ignores the RAILS_ENV directive. thanks/ thila. <IfModule mod_fastcgi.c> FastCgiIpcDir /tmp/fcgi_ipc/
2006 Aug 14
3
New line char in a text area field on DISPLAY
I have a text_area to accept upto 1000 chars, which is stored as a blob in mysql. When I try to display the saved data, I dont see the new line characters - however I could see the newline characters in EDIT MODE. So my newline char is lost during displaying. Any ideas how to fix it. thanks thila -- Posted via http://www.ruby-forum.com/.
2006 Jan 18
3
search with like operation from a table
I have a table with the list of business name and address in it. It may contain 1 million rows. The users want to look up into this table based on the business name. The simple solution is to use LIKE in mysql, but I am worried about performance, since the user load will be very high for this system. Any suggestion on how to handle the potential performance issue? How can i use a search
2006 Jan 18
1
Ruby and PDF creation...
Hi- I need to create PDF docs on the fly with data from a database. I see couple of options floating around to achieve this in Ruby. Can anyone recommend the best way to do this? Also any helpful hints or sample programs will be appreciated. Thanks Thila -- Posted via http://www.ruby-forum.com/.
2005 Dec 29
2
Has any one seen this error message
I am truying to install the plugin ("ruby script/plugin install engines"). But I get this big error. Any help? D:\develop\Ruby\workspace\a2>ruby script/plugin install engines script/plugin: No such file or directory - svn --version script/plugin: No such file or directory - svn ls http://dev.rubyonrails.com/svn /rails/plugins/
2006 Mar 16
1
application_helper.rb vs application.rb
I find that I want to put the same methods into both of these files. Whats the best way to get away with a single implemenation? Gareth -- Posted via http://www.ruby-forum.com/.
2006 Jun 27
3
User websites with templates.
Hi, I''m very new to Rails and have a general question. What technique would you use to allow users who have a uniform set of data to create very un-uniform websites from that data? One set of data, many different website/output possibilities. It would have to go beyond CSS. I''m assuming there will potentially be some level of scripting involved for each template. The goal is
2011 Jan 11
2
Problems with activex
I have one http applicaion that uses activex to load, my problem is that i can`t seem to install ie4linux that from what i understand works with activex. This is the only thing i need to fix to kick windows out the door. I`m using ubuntu 10.10. What wine version do i need to use in order for it to work ?
2013 Nov 29
1
How to catch warnings sent by arguments of s4 methods ?
Hello, I apologized if this had already been addressed, and I also submitted this problem on SO: http://stackoverflow.com/questions/20268021/how-to-catch-warnings-sent-during-s4-method-selection Example code: setGeneric('my_method', function(x) standardGeneric('my_method') ) setMethod('my_method', 'ANY', function(x) invisible())
2009 Nov 25
1
unable to add the flash player helper
hi i am trying to add the flash player helper on applicaion. when i install the the svn i got this error how to solve this? # ruby script/plugin install svn://rubyforge.org/var/svn/flashplayrhelpr svn: Can''t connect to host ''rubyforge.org'': Connection refused and also i try this # rake flash_player:install (in /home/malathi/www/videoapp) rake aborted!
2006 May 25
4
downloads dispatch.fcgi for every request!!
Hi All, has anyone ever seen it when they vist the URL in the applicaion that it just tries to download the FCGI dispatch file? Im running FC3, Lighttpd1.4.11, Rails 1.1.2 and FastCGI. i run IRB and get... irb(main):001:0> require ''fcgi.so'' => true irb(main):001:0> require ''fcgi'' => true On the default rails install page ''riding on
2007 Dec 16
4
Make AR setter methods private?
Hi, I have a AR model that I want to limit changes to be only via instance methods that I''ve added. How do I prevent my other sw from setting the instance''s attributes? I know about #attr_protected and #attr_readonly. But the first leaves the individual setters as they were and the second stops all changes. I want something like "attr_private" Thoughts? Thanks,
2008 Feb 22
7
Testing misc methods in ApplicationController
I''m already successfully testing before_filters in application_controller courtesy of this blog post: http://www.movesonrails.com/articles/2008/01/23/spec-ing-your-application-controller However, i can;''t work out how to test the sort of method that is added to application_controller so that all controllers can use it. It must be something simple that i''m doing
2008 Apr 04
5
First call to worker method doesn''t work
I have a worker as follows: class SampleWorker < BackgrounDRb::MetaWorker set_worker_name :sample_worker def create(args = nil) # this method is called, when worker is loaded for the first time end def my_method # Deliver test e-mail message Notifications.deliver_message(1, "DM") end end I have a rails controller that calls the following code: worker =
2005 Dec 30
6
call a method once per page request
Hi, I''m wondering if there is a simple solution to call a method once per page request. I tried to place my call in a before_filter in ApplicationController but it''d called a second time if I use render_component from a view. Seems to me that a hook should be added in Dispatcher#prepare_application. Context: working on i18n, I''m trying to check lang either from uri,
2006 Feb 21
11
helper for models?
Is there such a thing? I have some duplicate methods in my models, can I place them somewhere and call them in to my models, thus keeping DRY? -- Posted via http://www.ruby-forum.com/.