similar to: rails equivalent to asp''s Application object?

Displaying 20 results from an estimated 20000 matches similar to: "rails equivalent to asp''s Application object?"

2006 May 25
24
Make these a prt of Ruby on Rails!
3 things that should be part of the main Rails tree: http://www.redhillconsulting.com.au/rails_plugins.html Views? -- Posted via http://www.ruby-forum.com/.
2006 Jul 20
9
Including children''s children?
a has many b''s b has many c''s results = A.find params[:id], :include => :b How do you also make sure the b''s include the c''s? Thanks for your help. Thank You, Ben Johnson E: bjohnson@contuitive.com O: 800-341-6826 M: 817-229-4258 -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Apr 11
6
asp''s application object rails equivalent?
In asp there''s a built''in object, Application, which behaves like the session, but it allows you to share information among all users of the application. (http://www.microsoft.com/windows2000/en/server/IIs/default.asp?url=/windows2000/en/server/IIs/htm/asp/vbob6zkv.htm) It''s just like if every user would be accessing the same session. what is the rails equivalent?
2006 Apr 23
37
Newbie .. nil object and missing something obvious
Trying to do first project in Ruby on Rails, and I''m getting the dreaded nil object exception. I''ve reduced the code to what I think is the minimal case, and it''s still not working. Code presented below.. ---------------------------------------------------------------------- in "app/controllers/dashboard_controller.rb" class DashboardController <
2006 May 16
7
RJS head scratcher
I''ve been joyfully using RJS in a lot of our work lately, with no issues whatsoever. However, I am porting an application to RJS templates that we''ve had for a while, and having some issues. When I use Firebug to see what is going on, the response comes back like this: try { new Effect.Highlight("gi_error_row",{duration:20}); } catch (e) { alert(''RJS
2006 Mar 09
4
Testing Migrations
Is there some standard way to test migrations? It seems to me that an additional safeguard for migrations would be to test and see if applying the migrations to the test database allows one to reconstruct the structure of the development database. If you can''t, then there is an error in your migrations, most likely because someone hand-modified the database without generating a
2006 Feb 10
36
Advocating RoR in the enterprise?
Hi folks, I''m looking for advice on how to promote RoR in my workplace. Specifically, I''d like to work out a strategy for promoting development in Rails as a new alternative to our existing technology (the usual suspects... mostly Java/Oracle, .NET, PHP, and a bit of Perl here and there). Some background: I work for a fairly large state environmental agency as a web developer.
2006 Apr 17
18
The lone PC in Raleigh
Last week I had the pleasure of attending the Raleigh area Ruby users Meetup. It was very interesting and very informative. I did feel a bit out of place when we noticed that of the 11-12 people there, I was the only one with a PC laptop. The rest were shiny macs. Ah well, I need to replace this thing soon, and now that BootCamp is out, I really have no more excuses. This way I can test
2006 Feb 16
10
Ruby class variables and access from view templates
I have an app that requires me to define a class variable (actually an array) in a controller and then access it from within a view. It seems that the class variables aren''t working right. Here is an example of what I''m trying to do. class DisplayController < ApplicationController @@thumbnail_array = Array.new ... def some_method @@thumbnail_array = SomeModel.find_all
2006 Jan 19
4
DevLists :: Mailing lists made easy
I have tried various mail clients to read the Rails mailing list for the past 12 months. As the list volume grew, it became utterly impossible to browse through the new messages and very hard to locate the useful gems I had previously found. After subscribing to a few more lists, I realized that there had to be a better way. I could not find anything to meet my needs, so I designed
2006 May 16
5
Transactions in RoR
Hi, Does anyone knows how to manage transactions in RoR. Thanx
2006 Mar 22
8
Premature end of script headers: dispatch.cgi
Hi I am running ruby 1.8.4 and rails 1.0.0 with Apache 2. I made a simple rails application called demo and also created a controller called say and an action called hello which is working fine using webrick. To run it under Apache I created a symlink demo1 which is linked to the demo/public directory. If I run it using www.example.com/demo1 then I get the "Rails- Welcome Aboard"
2006 May 19
37
OS for rails development: Windows vs. Mac?
Caveat: this is not a discussion about *hosting* a rails app on windows. Anyway...Macs are everywhere you look when researching rails (demo vids, tutorials, and pictures from rails training classes). I''m interested in what the pros to using a Mac for rails development are (besides textmate). Is it more of a cultural thing, a what would 37 signals do thing, is it a unix thing, or
2006 Jun 17
5
STI versus Composition...or the headaches of one big table
Guys, I have a relationship between model classes that I believe is best represented by inheritance, but the likelihood that things will change often is driving us to composition instead. So, I have a class called Autos, and subclasses called Suvs, Minis, Mids, Sports, for example. We have been requested to avoid the STI approach to this, because of fear of a quickly growing table with
2006 Apr 10
6
Single Table Mapping
This is pretty simple, but I must be missing the obvious. I''ve got a table that''s similar to this: USERS: - id int - username varchar(64) - password varchar(64) - role_id int ROLES: - id int - description varchar(16) I''ve had no troubles doing has_many relationships at all. But I want to map the user.role directly to the role model automatically (which sounds
2006 Feb 11
16
Why does''nt rails pick up more metadata from a mysql schema?
Hi, when I define a db column to be non-nullable or of length 20 or as numeric, I would expect rails to validate that, but that doesn''t seem to be the case. Any idea why that is? The metadata is accessible, at least in the mysql case. I am using rails 1.0 with mysql 5. Cheers, Mariano
2006 Feb 25
2
newbie advice
Hello Everyone - Newbie here. My programming experience is primarily SQL, SAS (if anyone knows that), and a little tiny bit of ASP. Want to get going on Rails. Any suggestions? Was thinking of "4 Days on Rails". Thoughts? Thanks - Brian
2006 May 22
6
existing magic to prevent db redundancy?
suppose users have a favorite colour, linked to with a color_id field. suppose also they have a pet rock, which is one of many possible colors... is there a ''best practice'' in order to avoid having ''blue'' appear in the Color table 100 times. can validates_uniqueness_of be twisted into handling this case? should i be adding something to the initialize()
2006 Apr 09
18
I can''t get mod_fcgid to work
Hi, I just installed mod_fcgid on my apache2 server. When I try to load my application I get an "Application error - Rails application failed ..." message. In my Apache2 error-log it says: Premature end of script headers dispatch.fcgi mod_fcgid process /data/www/app/dispacth.fcgi exit (communication error), terminated by calling exit(), return code 1 Any help with this would be
2009 Aug 08
3
ASP Pages?
I have a friend that hosts a few basic ASP pages. some simple links and plays a few media files with Windows Media Player. Is there any way I can host his site on my Linux Server? Without re- writing it for him.... -jason