similar to: simple question

Displaying 20 results from an estimated 120 matches similar to: "simple question"

2006 Jan 20
6
Pre-populate db with yaml outside of testing?
Hi. What is the best way to pre-populate your database with records while developing, not testing? For example, I want to: 1) > [run this command to populate db] 2) > ruby script/server 3) now I can surf to localhost:3000 and my app will already have relevant data I''m hoping to use yaml to suck it in. Is there a way to use the Fixture class to handle this even though this is
2006 Jan 22
0
link_to query string
Here''s a simple one I think. Using link_to, how do you get multiple fields in the query string? link_to("anchor text", {:action=>"neat_page", :field_1=>"value 1", :field_2=>"value 2"}) -this only gets you field_1 in the query string as does this - link_to("anchor text", :action=>"neat_page",
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 Mar 06
5
Question about file_column plugin
Hi! File_column plugin saves uploaded files to "public/model/image/model_id/filename", if i understand it correctly. Does it mean that it creates new folder for every image? I have product (model) that has_many images (model). Is it possible to use (or modify) this plugin that it would save my images to different folder, so the id of the model_id part would be id of the product
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 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 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 Jun 30
3
gem Rmagick install problem on Linux
I get the following error when I try to install Rmagic (via gem) on Linux. Do I need to install anyting before installing rmagic? This worked seamlessly on windows. What the best way to install it on Linux. I am on RedHat ES 3. /thanks -thila Attempting local installation of ''rmagick'' Local gem file not found: rmagick*.gem Attempting remote installation of
2006 Jan 18
5
Ruby and charting
Hi- I need to create simple charts on the fly - I had used JFreeChart in the past with inJ2EE apps. Is there any equivalent here for Ruby. My charting needs are simple: just line charts. Also if anyone has done this, pls let me know how I should go about in doing it. Thanks -- Posted via http://www.ruby-forum.com/.
2006 Nov 29
5
Collection_select with two columns and a prompt
Hello, I am quite a newbie to RoR, I hope you maybe able to help. I have a collection_select in a _form.rhtml: "collection_select(:assets, :model_id, @models, :id, :model_ref,options={:prompt => ''- Select a model -''})" As you see my drop down menu will show the model_ref column. 1) Is it possible to have more than one column. For example I would like to
2006 Jun 21
2
access to application.rb methods
Why can''t I access the utility methods defined in applicaion.rb from the model classes? If that does not work, where is the best place to put common utility methods that must be available to all the models. thanks -- Posted via http://www.ruby-forum.com/.
2005 Dec 29
2
Login plugin
All- I am new to Ruby; following are my two questions: 1. Which is the best login plugin? I keep hearing about SALT and loginengine. 2. For installing loginengine; I see the two following steps - Both these does not work for me. : $ script/plugin install login_engine ==I am getting "script/plugin is not a internal or external command, operable program or batch file"
2006 Jun 03
4
newbie question
All experts out there, I went thru the archives and aparantly lot more people have the same problem as me. I would like someone to answer the following question. Question: How to handle multiple rows in a single form? Example: Say there is a employee class, with the following 4 attributes 1. name (text field) 2. sex (radio button) 3. state (drop-down) 4. company policy indicator
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/
2008 Jul 17
5
.build method
I have gone to the api and have searched the internet and looked through the books that I have, but I am having trouble finding an explanation on what the .build method actually does and how it is used. I guess the best example is if I want to create a todo list application where I can create a new todo list and add to do items all at the same time. I would post to the todolist controller to
2006 Jul 20
1
Override coulmn data type - urgent
Hi- I have a BigInt (MySql) column type - RAILS treats it as FixNum, which causes big problem for us since we need to store a 12+ number of digits. How can I tell Rails to treat is as BigNum instead of FixNum? thanks thila -- Posted via http://www.ruby-forum.com/.
2006 Jun 05
1
IM integration
>From WITHIN my web app, I want the web app users to be able to send IM messages to yahoo,msn,AOL users. The receving users are not aware of the sender. So our web app takes the input msg from the sender (RAILs app), then on the background sends the msg to the recevier (the recevier is aware of the sending application id). Any response from the recevier will then be displayed to the sender
2006 Jun 27
1
Static pages
I have lot of static pages in my applications (FAQs, Contacts, Privacy etc..) What is the best way to handle (deploy) these pages in my application. I am using Apache with fastcgi. I would like to deliver the static pages from the apache itself. Basically how the deployment is done? The catch is the user should be easily navigate between the static and dynamic contents. thanks thila --
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/