similar to: Upgrading broke the .find methods???

Displaying 20 results from an estimated 4000 matches similar to: "Upgrading broke the .find methods???"

2006 Jun 21
14
[Bounty] 1 pizza for 1 simple plugin
So here''s the deal. I don''t know the innards of rails well enough to do this quickly but you might. First person to write this and release it under MIT license or public domain, and tells me, gets a free pizza from your favorite local delivery place. You pick the toppings, I''ll call ''em and order it up for you. Yeah a pizza isn''t much but I''m
2006 Jul 28
8
mass emails
Say we have 20k-50k users signed up for an email newsletter. Does anyone have any data on how well ActionMailer does with mass emails? How long would that take to send? Anything I should watch out for? Thanks, Joe
2005 Mar 10
8
Login controller additions
I have added roles and roles_users table and updated the model so that my users can have multiple roles. ("Admin" role does always have id = 1). I have added these methods to my application controller. <code> helper_method :is_admin? helper_method :is_user? def is_admin? if @session[''user''] @session[''user''].roles.find(1)
2006 Jun 22
2
Embed a Rails app within another?
I''m looking for a solution where I could load and render pages from one Rails application within another. I''m looking through the Rails code right now to see if this would even be remotely possible. Does anyone have any ideas? I know the obvious answer would be to proxy the app via Net::HTTP, but this is undesirable because: - I don''t always want to depend on having
2005 Aug 02
8
An initial look at Trails
I''m posting this here because I''m sure that there are a few Rails fans here who are stuck in Java land at work and willing to consider Trails as a compromise. ( Web version here: http://weblog.masukomi.org/index.pl/view/trails ) First let me set the stage I love [Rails](http://www.rubyonrails.com) but I work in a Java shop. There are two of us here but I''m the only one
2005 Apr 01
11
I want to blog!
This isn''t Rails or Ruby related, but I just need some advice and thought I''d ask the bright individuals here. I want to start my own blog but I''m not sure where to begin. I don''t want to get a blogger account because I want to have my own domain. Blogger also doesn''t have many features. My hosting service is 1AND1 so it supports php, cgi and mysql.
2006 Jan 11
4
Member.buddies.sort >> undefined method `<=>''
Hi all I have a model Member that has a habtm relationship to buddies (also members). Now I wanted to sort them using sort, but this ends in an error "undefined method <=>"! Where''s the problem here? Sorry, I''m still beginning to learn Ruby. ;-) Thanks Josh -- Posted via http://www.ruby-forum.com/.
2006 Jun 21
4
Simplest way to demonstrate a RoR app
Hi, I have built a simple RoR application and would like to show it to some friends. I would like to assign a dyndns URI like "myapp.dyndns.org" address to point to the application. As the WEBrick/Mongrel servers are running in "localhost (so loopback connections)" and I couldn''t bind them to the external server name or couldn''t bind them to my IP
2006 Jul 29
29
Dynamically generating 10k pages per second
Hi, Anyone got an idea of how many web and database servers I''d need to push out 10,000 dynamic pages per second? Fairly simple pages and database queries. I''d appreciate recommendations for hardware. The clients for this project are anticipating large amounts of burst traffic. Joe
2005 Mar 05
9
Best practice to manage ''id'' hacking?
In my app, a user logs in [via the login generator] and has access to details of his account, and transactions attached to his account. This is achieved in the standard rail manner by passing the account id or transaction id between the controller and the view. But what is to stop someone hacking the URL or view html to access another account id or transaction id ? eg /account/show/46 becomes
2006 Feb 17
4
Why doesn''t this work!
I have this in my controller... @tech_standards = TechStandard.find_by_sql("SELECT * FROM tech_standards WHERE subpoint <> 0") Everything is fine except when I look at my view I still get supoints that are 0. When I run this query in my query browser I don''t. View: <select name="resource[tech_standard]" id="tech_standard">
2005 Mar 10
10
Some Basic Questions
Sorry I can''t access IRC from work so I hope you don''t mind me asking my newbie questions here: 1) I have the following code: @post = Post.find(@params[''id'']) @comments = Comment.find_all "post_id = #@params[''id'']", "created_on ASC" And I am have problems with the second line. I want to pass the id from my post to the
2006 Jul 03
1
ben
Hi, Im attempting to use the sparklines graph plugin, and am reciving the message below. no such file to load -- RMagick Has anyone got any one suggestions on how to go about installing rmagick using rails or any tutorials? Thanks -- Posted via http://www.ruby-forum.com/.
2006 Jul 16
2
how does base camp manage there accounts
hi, Cant find any information this anywhere so was wondering if anyone had any ideas. Basically when you go to basecamp.com it allows you to sign up for a account and gives you a url username.projectpath.com I was just wondering how they do this, and if each account has there own database or if it is all stored in one. thanks scott -- Posted via http://www.ruby-forum.com/.
2006 Jun 29
1
can i update the page whitout reload it?
hello everybody my name is reynaldo and my question es the next: i have a form whit a combobox and a textbox the combobox have the number of days: 1,2,3,4,etc and i want show in the texbox the result of the number of days for a number for example: when de user choice 1 day, show in the box $200 when de user choice 2 day, show in the box $400 when de user choice 3 day, show in the box $600 when
2006 Jan 07
8
Using find_by_sql to get the sum of a column
Hello, I was wondering if there was a method in Rails that returns the sum of a column. For example, I have a column called ''score'' and writing a SQL statement such a ''select sum(score) from table_name'' does return the sum of the values in the column. In the past (not too long ago being a newbie), I defined all sorts of methods only to discover that Rails
2005 Nov 18
6
wrong number of arguments (2 for 1) error message help
All, This is really starting to get me as i can''t figure out why I am getting this error. Here is what is going on. I have a table called items and a item controller. When I add a new item to the items table I am also creating several associated tables. the code for this so that you can follow along is: def create @item = Item.new(params[:item]) # The item belongs to
2005 Dec 30
9
SELECT MAX
How does one do a SELECT MAX query in rails? I''ve searched and searched and tried lots of things with no luck. I want to implement "SELECT MAX(column_name) from table_name and have it return the maximum value from column_name. I just need to get that one value, not the whole object... Thanks for any ideas... Shelby _______________________________________________ Rails mailing
2005 Mar 02
4
All I want for Christmas
is to run my Rails app on lighttpd .... Unfortunately, I am tied to SQL Server, and the database connector requires ADO.rb which only runs on Win32. And lighttpd doesnt run on Win32. *sigh* _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
2006 Apr 04
5
How to implement tag clouds using plugin?
The code on http://blog.craz8.com/articles/2005/10/28/acts_as_taggable-is-a-cool-piece-of-code is based on the acts_as_taggable gem,anybody has done that using the acts_as_taggable plugin?thanks! btw:the code above uses the tag_count method,which is defined in the gem: def tags_count(options = {}) options = {:order => ''count DESC''}.merge(options)