similar to: requests

Displaying 20 results from an estimated 100000 matches similar to: "requests"

2007 Nov 28
5
Memory footprint
Hi Everybody, my rails 1.2.5 application runs in a linux embedded environment with serious memory constraints. I would need to know how small a memory footprint I can hope to get. I run ligthtpd with only one dispatch and I did already remove actionmailer and actionwebservice which I do not need. Currently top shows a memory footprint of 720K for lighttpd and 25M for the dispatch.fcgi process. The
2008 Mar 09
0
Connect with me and wht LinkedIn.com...the best way to stay in touch
Connect with me and wht LinkedIn.com...the best way to stay in touch My profile is at http://www.linkedin.com/in/jfricci Use my name John Ricci and email johnr[at]basn[dotcom. I am an advisor to and investor in a number of US companies John Ricci --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2007 May 14
3
RAILS on UBUNTU
Hello Friends! :) I''ve sold my iBook before landing in LA yesterday and as long as I can''t afford buying a new one I have to do it with LINUX : ) I''ve been installing the system yesterday and it''s working good, performances on athlon are good and I''m satisfied but I have two questions.. a) which editor to use? b) is there any *session disabled*
2006 Sep 25
2
Managing requests for static content in WEBrick and Mongrel
All, Is there a way to set things up so that requests for static files in either WEBrick or Mongrel will just cause a regular HTTP request and not cause the dynamic routing-based invocation to occur? I had an issue where a request for a missing .js file was causing another request to be registered, thus blowing away my flash data. I tried to do this in my routing file, but I don''t
2008 Dec 05
1
page views counter
Hi all, I''ve made a really simple page views counter. def show @post = Post.find...... addcount = @post.views += 1 @post.update_attribute "views", addcount end Its working fine, but if someone hold the F5 key, it keeps counting and counting. Which is not a really good. Is there a way how to force the counter to not keep counting while someone is holding the F5 key? THX
2007 Mar 19
1
Introducing myself
I am new to this group and would like to introduce myself. I am the President of US AngelInvestors,an angel investor group in Silicon Valley,and also founder of Bay Area Startup Network a networking group in the Bay Area. I invite you to join my network on LinkedIn, which I use much principally. I am always looking at increasing my contacts, and welcome new deals. You can connect with me on
2007 May 10
2
Dynamic counter?
Hi, In a form I have a text area T and a disable text field C (for counter). C must show dynamically how many characters have been typed in T. Should I go in for a Javascript solution (or Ajax) or is there any other way? Thanks, Ram. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are
2008 Jan 23
2
CSRF / cached authenticity tokens / ajax requests
I''m going to go out on a limb here and say the new CSRF protection in Rails is flawed. Why? Forget about caching if you care to use it. Consider the following: <% cache do %> <%= link_to_remote "Add To Favorites", :url => {:controller => "favorites", :action => "create", "movie_id" => 2} %> <% end %> # Output <a
2008 Oct 12
4
Re-using crontrollers with non-http requests
Hi! I am creating a application that does a lot of background processing. For this I am using a queue (starling in my case...) and several pollers that will get a message from the queue and execute some code corresponding do it. The code that these pollers process looks a lot like some code in methods included in some of my rails application controllers. I wanted to DRY this a little bit, so I
2007 Nov 08
1
Running tests from another test case
I''m in the position that would be really useful for me to run in a testcase a test belonging to another testcase. Assuming I do not want to use modules, how could I do that? My code would be something like this: class MyTestCase < Test::Rails:TestCase def myTest matc = MyAnotherTestCase.new end end The code above seems to work but when I run MyTestCase all the tests
2007 Jul 22
1
Class level variables in Mongrel
I''m trying to use a class level variable @@count as a counter between requests to the server. So for example I initialize it @@count = 0 at the top of the class and in a method I have @@count = @@count+1. It seems though that @@count is begin reinitialized back to 0 each time the controller is called. Is there something that I''m missing here? I''m running under
2007 Sep 11
2
acts_as_authenticated redirect on ajax requests
Hi there, I''d like to know if there is a solution to the scenario when using acts_as_authenticated and ajax: I have an action in my controller which is protected by login via acts_as_authenticated. Now, this action can be called both by human interaction, as well as ajax requests. (It is an add to cart link). It works great as long as I am in an authenticated session. Now, I want to
2009 Feb 05
6
get # of errors in error_messages_for
hi everyone here i go again, i have problem we error message validation here is the sample of my code: error_messages_for :user, :header_message => ''X errors, please find red mark'', :message => ''Following errors were found:'' the problem is that how where going to get the value "X errors" or the number of errors if they have when the is
2009 Mar 30
3
Great discrepancy between Google Analytics and own counter
Got Google Analytics running on one of my websites. Google defines a pageview as the most occuring event. Every refresh, every link clicked to a different part of the page, even loading from cache is an additional pageview http://www.google.com/support/analytics/bin/answer.py?hl=en&answer=57164 Now it should be known that GA is JS based, and will report directly to Google from the
2007 May 14
3
Counter Problem
Hi. I have a problem with counters in Rails. The situation looks like this: -3 simple models class Forum < ActiveRecord::Base has_many :posts end class Topic < ActiveRecord::Base has_many :posts end class Post < ActiveRecord::Base belongs_to :topic, :counter_cache => true belongs_to :forum, :counter_cache => true end - In migrations i have declared t.column :posts_count,
2006 Dec 18
0
How to store objects in memory between requests for all sessions?
Hi, I''m using a YAML file for localizing my webapp. As it works now the file is loaded and parsed from file for each request. Since the file does not change often I would like to have the parsed object in memory to avoid loading and parsing the object for each request. My sessions are stored in the database so that is not a good option since the object would need to be recreated for each
2007 Feb 24
2
RESTful PUT and button_to
I''m working on a RESTful app, and I''ve hit a snag. Here''s a simplified example of the problem. (Excuse me if this example code isn''t strictly correct; I''m typing from memory.) Suppose I have a table which models a simple counter. It has a single column, "count": class CreateCounters < ActiveRecord::Migration def self.up
2009 Mar 09
2
form_tag error: only get requests allowed
I am getting above error while updating an item using form_tag helper. <h1>Edit Topic Item</h1> <% form_tag edit_topic_item_path(@item.topic, @item), :html => { :method => :put} do %> <%= render :partial => ''item_form'', :object => @item %> <%= submit_tag ''Save'' %> <% end %> <%= link_to ''Add
2007 Sep 04
3
Finding the position on an item in a collection
This feels like it should be easy but i can''t work it out: if i have a collection of stories, ordered by (for example) date, then how do i find out the position of the story with id = (eg) 23 in the collection? I guess this is a ruby question rather than a rails-specific question, but maybe there''s a rails way... -- Posted via http://www.ruby-forum.com/.
2006 Nov 19
3
Binary PUT requests are failing
Does anyone know why binary PUTs are causing a 500 error in Rails? Non binary PUTs are working fine. I''m trying to make a WebDAV server. I''ve tried using both mongrel and webrick. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: