similar to: Rails and Offline processing

Displaying 20 results from an estimated 5000 matches similar to: "Rails and Offline processing"

2006 Jun 20
8
Integrating multiple applications
I''ve got a couple apps that I use (billing app, support ticket app, some other custom apps) that I want to integrate into one site. They will all use the same layout for the most part, and will link between each other. When I initially thought of doing this, I figured if I put the apps at different roots - /billing /support etc - then the links wouldn''t work at all, because
2006 Feb 10
4
hiding header/footer on html print?
Hello all, I am using what might be a "poor mans" reporting... html -> print. Who knows a way to hide the browser-included header and footer of the print? thanks. -- ------------------------------ Forget the icing. Bake the Cake! - the epi-centered developer ------------------------------ Peter Fitzgibbons -------------- next part -------------- An HTML attachment was
2006 Feb 02
4
uninitialized constant Test (NameError)
I have three Rails apps on my laptop. Two can runs tests just fine. The third generates this error when I try to run any tests: > /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/ > active_support/dependencies.rb:200:in `const_missing'': > uninitialized constant Test (NameError) > from ./test/unit/../test_helper.rb:5 > from
2006 Mar 20
1
Mongrel + Apache = Parallel processing ?
Hello All, If I use Apache/mod_proxy with mongrel, will that give me multiple processes? I have a long-running request that blocks all other requests on a single mongrel service instance. Ideas? Thank you all! -- ------------------------------ Forget the icing. Bake the Cake! - the epi-centered developer ------------------------------ Peter Fitzgibbons -------------- next part
2006 Feb 16
5
filter a list
I''d like to add some filter choices to display a list of items. These items has some boolean fields for example, and would like to have a checkbox at the top of the window to let me select how to filter the list. here''s what i put in my controller if @params[:filter].nil? @params[:filter] = { ''sent'' => "1"} end ... generate the corresponding
2006 Jan 16
3
37s style modularization ?
Hello all, I remember and have lost a link to the blog on hints about 37s modularization of basecamp, backpack, etc. Anyone remeber this and can remind me of the link? Thanks ! -- ------------------------------ Forget the icing. Bake the cake! - the epicentered developer ------------------------------ Peter Fitzgibbons -------------- next part -------------- An HTML attachment was
2006 Feb 09
9
RMagick on OS X - HOW
Hello all. I''m a seasoned system administrator and have no fear of building source packages on a variety of platforms, but RMagick has, until recently, evaded all of my attempts to building it on my PowerBook. Someone else just mentioned that they had trouble with RMagick on OS X (Intel, don''t really know if my advice will help) so I decided to post a HOWTO to the list. I
2006 Feb 28
12
Examples for Money library ?
Can anybody share some examples of their Money implementation ? I''m trying to setup a Model to use this library, but can''t seem to wrap my head around how it is exactly supposed to work. My Model (Foo) looks like: =============== composed_of :commission, :class_name => "Money", :mapping => [ %w(commission_cents cents), %w(commission_currency currency) ] Yet, in
2006 Mar 22
15
Rails-1.1.0-RC1 tagged today (4010)
Looks like Rails 1.1.0 RC1 is finally here: http://dev.rubyonrails.org/changeset/4010 -- Posted via http://www.ruby-forum.com/.
2006 Feb 19
8
SwitchTower to skip config/ directory
Hello, I am trying to figure out how to use switch tower.I have a local copy of source code and I want to put it on the host.Now I dont want to put directories like config/ because the settings on the host and the one on my machine are different. Any way to do this? Also is svn necessary to use SwitchTower? Vivek -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 May 10
6
Migrations don''t really support transactions
I read in various places that although migrations aren''t transactional, all you need to do is wrap you migration method in "ActiveRecord:: Base.connection.transaction do" to make the self.up or self.down transactional. In my experience (Rails + PostgreSQL), this doesn''t work very well. If my migration hits an exception, any tables that were touched remain modified.
2006 Jan 24
9
Constructors
Hi all, A little question. How can u use an constructor in controller? I would like to initialize some central stuff before i''m processing the controller. thanks in advance, Martijn
2006 Apr 28
3
store user id in session or find user id
Hi Im uisng the lgoin generatior that as far as I can tell stores the username in session. I have another table that i need to store the id of the user who creates an entry. (the logged in user) Is it possible to store return the id and store it in session once the user is created. then do somthing like @project.user_id = session[:user].id; or can I perform a search in the product table
2006 Jul 28
7
Uploading 2+ files simultaneously
I''m having trouble uploading 2+ files simultaneously (from different client machines)... the upload page just hangs... I''m running... - ruby 1.8.4 (2005-12-24) [i686-linux] - rails 1.1.4 - red hat el 4 - apache - fcgi (0.8.7, 0.8.6.1) - firefox 1.5.0.5 - httpd.conf <IfModule mod_fastcgi.c> FastCgiIpcDir /tmp/fcgi_ipc/ AddHandler fastcgi-script .fcgi FastCGIConfig
2006 Feb 10
3
Using two select elements (master - slave)
Hi, I am looking for an opinion. I need to have two select html elements in a form, the selection of the first element will determine the elements of the second select. I do not want to use AJAX, so I think I would like to add a onchange event in the first select, but due to my lack of experience in rails I am somewhat without ideas on the way of handling this "post back" event. Thank
2006 Mar 10
9
Observers?
Hello all! I''m having an issue with Observers, and I''m hoping someone knows the answer. Here is the definition: app/models/vehicle_observer.rb > class VehicleObserver < ActiveRecord::Observer > def after_save(vehicle) > breakpoint > if vehicle.has_new_mil_indication? > UserMailer.deliver_mil_notice(vehicle) > end > end > end
2006 Feb 18
4
verifying best practice
i have a Project model, which belongs_to :user when i add a project, the users_id is based on the session[:users_id]. to get the users_id into the projects table, i''m doing this: @project = Project.new(params[:project]) @project.users_id = session[:users_id] this is working, i''m just verifying this is the best way to do it.
2006 Mar 19
4
Trouble with composed_of
I''m trying to use composed_of within my model. I have a field in my database named ''card1'', which is simply a string. I have this in my model class Player < ActiveRecord::Base composed_of :card1, :class_name => ''Card'' end class Card attr_reader :value, :suit def initialize(s) @value = s[0].chr @suit = s[1].chr end end The
2006 Jul 19
13
MySQL Replication as Load Balancing
Hello: We will be setting up MySQL replication for a load balanced environment, but we have to separate reads and writes. How can we modify rails to do so? Has anyone done this already? Thank you in advance! Dan -- Posted via http://www.ruby-forum.com/.
2006 Jun 18
13
Currency calculation
I''m thinking of experimenting with some currency conversion. However, I''d like the conversions to be in synch with the current rates. Anyone know (and this maybe out in left field) if there is some online (perhaps xml) or other data stream I can connect with in my code to output values based on user selection ? TIA Stuart