similar to: Render time

Displaying 20 results from an estimated 11000 matches similar to: "Render time"

2006 Jan 27
5
Multiple Apps running under Lighttpd with scgi on a Windows Box ... possible?
I''ve run into a problem on one of my development machines. I''m trying to run multiple rails apps on one dev machine that runs Windows. Problem is that is seems that I can only run one scgi_service at a time, meaning that only one of my apps will function at a time. Anyone know how I can get around this, other than getting a *nix box (which I should have soon, hopefully) ?
2005 Mar 10
0
Need Help with Flaky FastCGI on Windows
Hi Everyone - I have a rails 0.10.1 application deployed on a Windows 2003 server under XAMPP Lite 1.4.12. Running under CGI, the application works fine (a bit slow, obviously, but no problems). When I run under FastCGI, the app is fine until I leave it alone for a few hours. For example, last night I switched it to FastCGI and everything seemed to be working fine. When I woke up this
2006 Aug 07
0
deployment failures with sqlite3
Hello list, I''m attempting to deploy my first rails app on textdrive and have run into a problem. I currently have lighttpd running and I am able to start my rails app. When I attempt to visit my site I get an: Application Error (Rails) Investigating my production.log it looks like the app isn''t finding sqlite3, right? Do I need to pack that with the app? What about non
2006 Apr 02
2
Problem with lighttpd on mac
Hi, I followed the instructions I founded here : http://developer.apple.com/tools/rubyonrails.html I can run a small RoR application with webrick, everything is fine in this case. But when I try to use lighttpd i can access http://localhost:3000/images/rails.png for example but not a dynamic page. In the latter case I dont get any page, the browser is just waiting infinitely. If I force
2006 Feb 28
6
scgi+lighttpd+windows - why wont it work?
two problems, pls help...I''m under big pressure at work to fix this! I''m having trouble getting scgi and lighttpd running on windows - here''s what I did: On Win XP, I installed ruby, rubygems, and setup my rails app. All works fine with webrick. I then did: gem install cmdparse and gem install highline (as required for the scgi_rails gem according to
2006 Feb 03
6
Saving a User Object while in the Address Controller
Hi, My saves are failing me and I can''t figure out why. I am trying to save an address id to a user object just after I create the address. This isn''t the exact code, but it shows what I am trying to do. class AddressesController < ApplicationController def create @address = Address.new(params[:address]) saved_address = @address.save @user =
2006 Mar 25
11
Firefox ''Rails Mailing List'' search engine plugin
Hi all, If you''re like me you probably spend a lot of time search the Rails mailing list. To make life a little bit easier I''ve created a nice little plugin for firefox ( A whopping 15 lines of markup ). The plugin uses nabble.com to search the mailing list. Anyways, I thought I''d share. If you want to install it the manual way, here''s the code. <search
2006 Feb 07
2
render collection undefined local variable
Why am I getting undefined local variable ''contact'' in my partial. This is code I used to render the partial, works in lots of other places <%= render (:partial => ''list'', :collection => @contacts) %> in my parital I have <%= contact.first_name %> if I write this way it works fine <% for contact in @contacts %> <%= render (:partial
2006 Feb 23
11
Need help for simple RoR code.
I try a ''hello world'' demo here,It only show a ''hello word'' on web page you can see all my codes and structure here http://www.smtservers.com/demo/ I want to access the ruby app like this http://www.smtservers.com/demo/say/hello but I get a 404 error. Please let me know what problem the code have I am new for RoR. I am not sure the site structure is ok or
2006 Feb 13
11
ROR code syntax highlighting on blog?
I am interested in putting the cool syntax highlighting for ROR code. What''s the best way to do that? Is it using textilize or another formatting language? Or do I need special stylesheets? Any assistance is appreciated. Thanks Frank --------------------------------- Yahoo! Mail Use Photomail to share photos without annoying attachments. -------------- next part
2006 May 11
2
Rendering
I want to do something like this: <%= link_to "Attack!", :action => "attack", :id => session[:user].id, :op_id => users.id, :update => "attk-div",:postion => "top" %> But, What should I user link_to will redirect on click so what action do I do? -- Posted via http://www.ruby-forum.com/.
2006 Feb 08
5
Mysql::Error: Lost connection to MySQL server during query:
Hi, I am having Mysql connection problem for my first AddressBook application (which I took it from http://www-128.ibm.com/developerworks/linux/library/l-rubyrails/) I have gem installed the latest ruby, rails, lighttpd, fastcgi, mysql-4.1.14 on linux. Everything looks good. When I do: mysql -h localhost -u test -ptest -D AddressBook mysql> SELECT COUNT(*) FROM contacts; +----------+ |
2006 Apr 06
1
Rendering partials with pagination
I currently have a call to this action, which I''d like to paginate: def get_words @catid = params[:category] @words = Category.find(@catid).words render :partial => "word_display", :collection => @words end As you can see, a word_display partial is rendered for each word. If I add the pagination call (getting the links object), how can I then get
2006 Feb 03
2
Calling a javascript function after loading a partial with rjs
Hi, Is is possible to call a javascript function once a partial is loaded. Here''s what I am doing. I have a partial that gets updated via. an ajax call. When the partial is updated I want to call a javascript function ( enableTooltips ) which will then add tooltips to my links in the newly updated partial. Any help would be greatly appreciated. Thanks, Eric -- Eric Goodwin
2006 Feb 28
5
Getting number of days in a month
In PHP, there was an argument you could pass to the Date function to get the number of days in the current month: echo date("t"); // Outputs "28" for February I don''t see anything like this in Ruby/Rails. Right now, I''m using a very ugly line to pull the last day of the month: @number_of_days = (Date.strptime(Date.today.strftime("%Y-%m-01"))
2006 Mar 01
1
Net/Https & active_rbac & Debian Sarge
Hi, I''m attempting an install of active_rbac but am having some troubles. I''m running Debian 3.1 sarge and I am getting an error saying that I need to have net/https installed. I checked out my ruby lib and net/https.rb is nowhere to be found. I''m running the default ruby for Sarge which is 1.8.2. Was https.rb not included in this build? How can I get around this? I
2006 May 11
6
Dynamic data passing thru Rails to Flash
Hi, I am using Flash Dashboard and 3 sets of listbox. When i change my first list box say name i need to dynamically change the second list box and from the second list box when i choose an name i need to change the content according to this in the third list box. How can i pass this datas from database in rails. thanx g.balaji -- Posted via http://www.ruby-forum.com/.
2006 Mar 30
5
Has_many :through problems -- please help
I''m having a lot of trouble with has_many, :through and could really use some assistance. I''ve got a User and Group class. Users can subscribe to groups, and groups should know who''s subscribed. I''ve got a join table (group_subscriptions) with group_id, user_id, and it''s own id element. Users has "has_many :groups, :through =>
2006 Feb 10
4
How to do a find with conditions that contain an OR
Hi, I''m trying to do a find with a condition that has an OR on the same column. Say I only want to use find() but not find_by_sql(). I reduced my problems into the following: values = [] ... # filling up values from params Order.find(:all, :conditions => ["(action = ? OR action = ?) AND price = ?", values] For example I
2006 May 12
4
POST vs GET
I read in the Agile Rails book that I should avoid GETs for destructive actions. I notice that on 37signals'' Backpack web site, deleting an item in a list is accomplished with a simple click on a picture of a trash can. Is this a violation of the POST/GET rule noted above, or is there some way to make a clickable link send a POST? Ben