search for: railsinator

Displaying 20 results from an estimated 29 matches for "railsinator".

Did you mean: mailinator
2005 Dec 20
7
wrong id for activerecord object when using :joins in mysql
I''m using a find with a :joins clause, like this: :joins => "JOIN table_b ON table_b.id=table_b_id" The records returned are used in a scaffold generated list page. The edit, show, and destroy links are getting the wrong id. They are getting the id of the table b record. When I run the query using mysql, I see that the query returns *2* id columns, the id of the main
2006 Feb 22
3
is there really a restart task in switchtower? How do you invoke it?
I just created a new rails project "test". I then did "switchtower --apply-to ~/user/test test" I then moved into test and tried "rake restart" and got: kfelkins@lurch:~/user/test$ rake restart (in /home/kfelkins/user/test) rake aborted! Don''t know how to build task ''restart'' I see restart in deploy. Can restart be invoked from the
2006 Feb 15
12
Does your *shared* hosting account work without errors?
Does your *shared* hosting account work without errors? I''m interested in both positive and negative reports. If you are willing, please contribute - name of the hosting service - how long you have used them - your experience ("flawless!", "it''s crap!") You *do not* need to reply saying your VPS service works great. This is about *shared* hosting
2006 Feb 22
2
sudo in switchtower and security
I''m attempting to deploy a rails application using switchtower. My IT guys are refusing to give me sudo for a user changeable script. I really can''t argue with their logic. If I have sudo for a script that I can update, well, I can do most anything I want. They are suggesting I create a cgi that performs the same function. Since the cgi would run as www-data (this is a debian
2006 Feb 14
18
Does shared hosting work? Anywhere?
I moved a rails application to textdrive using their low-cost shared plan. Once on textdrive my app would display ''proxy errors'' periodically. Hitting reload seemed to be all that was needed to get past the proxy error. After discussions with their support people I decided the proxy errors were being caused by apache server restarts -- because there were many of us sharing one
2006 Feb 14
3
is shared hosting evil?
I moved a rails application to textdrive using their low-cost shared plan. Once on textdrive my app would display ''proxy errors'' periodically. Hitting reload seemed to be all that was needed to get past the proxy error. After discussions with their support people I decided the proxy errors were being caused by apache server restarts -- because there were many of us sharing one
2006 Jan 14
1
form fields WITHOUT table columns? Can we validate these in the model?
I would like to have a field on a form that does *not* have an underlying column in the table. Yet I would like to perform some validation on the value. I would like the results of the validation to show up just like the validations that are performed in the model. This is very similar to the password_confirmation field on a sign up screen. The password_confirmation is there on the screen, but
2006 Apr 20
8
Whats the best way to do this?
I have an archive that can have 0 or more extra files associated with it. I would like to be able to edit the associated files info on the same page as the archive info. Listing the extra files info to the edit form is simple enough, but How do I form the text input fields for easy (or automatic) pick-up in the update? Or am I barking up the wrong tree here? -- Posted via
2006 Apr 11
1
how to do a simple update on the server from a change of a select box?
I have a list of items on a page. Each item has a select list. If someone changes the select list I would like to update the appropriate record on the server....nothing else. I suspect I am making this too difficult. I have an action on my controller for updating this value. I just tried the ''remote_function'', ah, function. It invokes the action on the controller but the the
2005 Dec 30
2
scgi apache routes help needed
I''m trying to get an application running in a sub directory of a site using apache and scgi. The application runs fine with webrick. I have a site. Let''s call it "mysite.org". There is a variety of content on that site. I would like to add a rails application to that site. Let''s call the application "myapp". So we will have urls of the form
2006 Feb 07
17
Easy way of dealing with nil properties in templates?
Is there an easy way to deal with nil properties in templates? All I''m aware of are these methods, and it''s quite tedious and surely violates DRY. <%= @member.name unless @member.name.nil? %> <%= @member.name.to_is %> <%= "#{@member.name}" %> csn __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the
2006 Mar 14
7
Overriding new or create for a model
I have a model where I need to calculate one of the fields when I create a new instance. It seems to me that I should do this in the model code and that I should override the new and/or create methods. Is this the right approach and, if so, how can I execute the existing method but add on my calculation? I want something like: def create -Do the original create first- field =
2006 Feb 07
4
inexpensive ways to make a rails application highly available? mysql replication?
I''m interested in making a low volume rails application very available. This means that I would like to have an alternate server for those times when the primary server is unavailable for whatever reason. Virtual private servers are fairly inexpensive so one could have a rails application on 2 different vps systems (not on the same server, possibly not even in the same city).
2006 Jan 18
4
Canada on Rails - Schedule Released
We are extremely pleased to announce that we have finalized the schedule (http://canadaonrails.com/yvr06-schedule.html) for the upcoming Ruby on Rails conference in Vancouver, BC on April 13th - 14th, 2006. There are 15 speakers packed into two full days of presentations ranging from 30 minutes to 90 minute keynotes. Presentation topics include: * Where will Rails be riding next? * Enterprise
2006 Aug 15
7
mongrel_cluster not starting on reboot
Hi, I''m in the process of moving my blog over from lighttpd -> apache 2.2 + mongrel. Everything works fine as long as I don''t reboot :) On reboot apache comes up but mongrel_cluster doesn''t start up the pooches... I have added the mongrel_cluster call to my startup scripts like so: www:/etc/init.d# update-rc.d mongrel_cluster defaults Adding system startup for
2006 May 30
6
Getting /etc/mongrel_cluster and startup script to work?
Hi, I''m trying to setup my mongrel clusters to start on boot. I have followed the instructions under the "On Boot Initialization Setup" section at http://mongrel.rubyforge.org/docs/mongrel_cluster.html. When I try to start it up, I get the following error: me at mybox.com: sudo /etc/init.d/mongrel_cluster start Starting all mongrel_clusters... !!! Path to log file not
2006 Jan 23
8
OT: Problem rotating logs with lighttpd
Hi everybody, this is a little OT. We are using Lighttpd as a webserver for Rails. Our problem is that when we rotate the logs everyday at the end of the process, lighttpd stops writing the logs. To solve this we have to restart the server manually each time. We use a common Debian, lighttpd-1.4.7, Rails 1.0 and fcgi-2.4.0. I have tracked the lighttpd bugs, and I haven''t found
2006 Jan 22
11
ActiveRecord find
Suppose I have three tables - authors, posts and topics. Every post have a topic and every topic has an author, so I have posts.topic_id and topic.author_id. When the author is guest (not registered), author_id is nil. I need to find all the posts (in one query) where every post have all the information of the topic and the auther, so if p is one of those posts I could get the name of the
2006 Feb 10
15
"Ruby for Rails" in early access release
Hi -- My book "Ruby for Rails" is now being released one chapter at a time through the Manning Early Access Program, with the whole book due to appear on May 1. If you''re interested, see http://www.manning.com/books/black (I guess I could have just sent my sig with no body, but anyway :-) David -- David A. Black (dblack@wobblini.net) Ruby Power and Light
2006 Nov 04
0
any recommendations for handling a non autoincrement primary key
Hey everyone, I''m working on an application that has a table with a nice natural primary key. Outside of the rails world it would be *the* primary key. I would prefer to use this natural primary key and define associations that use it. I''ve done so but the problem is that my form for entering a record in this table is currently failing. I''ve used