[Rails] Getting the top results only by group in a .find statement

2009-04-09 Thread tyliong
This is my table model name is bids id | bid | keyword 1 | 2 | orange 2 | 3 | orange 3 | 1 | red 4 | 3 | blue 5 | 6 | red what i want is the get these the top bidder of each unique keyword in one .find statement --~--~-~--~~~---~--~~ You

[Rails] compromising development mode and production mode

2009-04-09 Thread Sam Kong
Hi, I have a very stupid question. I run my rails application on phusion passenger. As you know, in production mode I need to 'touch tmp/restart.txt' when I've changed some files. In development mode, it's not needed. Can I run the production mode application like it's development mode so that

[Rails] Re: changing database structure without wiping

2009-04-09 Thread Chris Kottom
What you're asking should be totally doable via Migrations. See http://guides.rubyonrails.org/migrations.html. Basically your flow should look something like: 1. Create stories table. 2. Add column chapters.story_id. 3. Find all chapters. 4. For each chapter: - Find or create

[Rails] Re: Default value in select_tag

2009-04-09 Thread Jaryl Sim
%= select_tag(:event_status, options_for_select([]) + options_from_collection_for_select (@event_status_list||Problem, :value, :detail, @selected_status)) % See http://api.rubyonrails.org/classes/ActionView/Helpers/FormOptionsHelper.html#M001596 On Apr 9, 12:34 pm, Phlip phlip2...@gmail.com

[Rails] Re: Default value in select_tag

2009-04-09 Thread Jaryl Sim
Hadn't realized that you were trying to specify Problem as the default. Note that if your :value method gives another result for Problem, like for example, 1, then you have to change the selected field accordingly. %= select_tag(:event_status, options_for_select([]) +

[Rails] Re: create_table with unique combo

2009-04-09 Thread Neo
hi slave,you can do it use the connection method of migration use it like ActiveRecord::Base.connection_pool.checkout 2009/4/9 slava slava_mike...@yahoo.com I need to create a table replacing default integer id with a string id and making a combo of (id and version) unique primary key. Here

[Rails] Re: Installing rails in a subfolder

2009-04-09 Thread Neo
capistrano also can do it for you its has a video in www.railscasts.com best 2009/4/9 Kevin Elliott ke...@phunc.com You certainly can. You'll want to look into mod_rails (Passenger), as it would be the easiest to set up in this fashion. The old school way would be to use FastCGI, but it's

[Rails] ActiveRecord Comparison Bug?

2009-04-09 Thread Moo
Hi Everyone, I'm running into a problem with the ActiveRecord::Base == method defined here (it's 2.3.2, but it looks the same in older versions too): # File rails-2.3.2/activerecord/lib/active_record/base.rb, line 2816 2816: def ==(comparison_object) 2817:

[Rails] Re: fckeditor_textarea

2009-04-09 Thread kosh
Thank you! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to

[Rails] Re: Rails 2.3 memcache performance drop

2009-04-09 Thread Ryan Allen
It turned out that the bundled memcache client that came with ActiveSupport (1.6.5) was, for some reason, _much_ slower than the one we were using before the Rails 2.3 upgrade (we were using fiveruns- memcache-client (1.5.0.5), the one that has retries built in). We've replaced the bundled

[Rails] Re: dynamic select menu

2009-04-09 Thread Shuaib85
Thank you very much. This way worked and saved me lots of efforts On Apr 9, 6:41 am, infinteVerve merickson@gmail.com wrote: Try this I got the same error when going from Rails 2.1.1 to 2.2.2 in line 66 of 'vendor/plugins/related_select_forms/lib/ related_select_form_helper.rb '

[Rails] Re: Facing problem while running db migrate

2009-04-09 Thread Darshana Gangwal
Darshana Gangwal wrote: Yes, c:\ruby\bin\rake exist.. There are two rake files: 1. rake file of type Windows Command Script 2. rake file of type Windows Batch File Is this creating a problem? Anybody know's how to solve this error? Its urgent!!! Darshana -- Posted via

[Rails] how to save one value into the attributes of all rows in a model

2009-04-09 Thread tyliong
When i use Model.all and i want to save this one value into all the rows of the model how do i do it without using a for loop. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to

[Rails] Re: how to save one value into the attributes of all rows in a model

2009-04-09 Thread Andrew Timberlake
On Thu, Apr 9, 2009 at 9:55 AM, tyliong tyli...@gmail.com wrote: When i use Model.all and i want to save this one value into all the rows of the model how do i do it without using a for loop. Model.update_all - http://api.rubyonrails.org/classes/ActiveRecord/Base.html#M002218 Andrew

[Rails] Re: Finding record between 2 dates

2009-04-09 Thread Vaibhav Deshpande
Robert Walker wrote: Vaibhav Deshpande wrote: I am very new to ruby on rails programming, I am using the oracle as my database, In my project there r 2 text box fields and in first and second text boxes i want the date field to be enter by the client and want to display the record between

[Rails] Re: Getting the top results only by group in a .find statement

2009-04-09 Thread Andrew Timberlake
On Thu, Apr 9, 2009 at 8:04 AM, tyliong tyli...@gmail.com wrote: This is my table model name is bids id | bid | keyword 1  |  2  |  orange 2  |  3  |  orange 3  |  1  |  red 4  |  3  |  blue 5  |  6  |  red what i want is the get these the top bidder of each unique keyword in one

[Rails] Re: Facing problem while running db migrate

2009-04-09 Thread Vaibhav Deshpande
Darshana Gangwal wrote: Darshana Gangwal wrote: Yes, c:\ruby\bin\rake exist.. There are two rake files: 1. rake file of type Windows Command Script 2. rake file of type Windows Batch File Is this creating a problem? Anybody know's how to solve this error? Its urgent!!! Darshana

[Rails] Calender Control

2009-04-09 Thread Vaibhav Deshpande
I want to use the calender control in my application like what i added in the attachment file for, from date and to date it should display records but i unable to attach it in ruby on rails application well its working fine in Dot Net too... I want to show the records between first and the second

[Rails] Query Help

2009-04-09 Thread Newb Newb
In my App ..i have Userinfo and FriendsInfo table.Each user has many friends.those friends are user of the app. for example i have 3 users in my userinfo table.namely =John =Victor =Masvi the users can add other users as friends.the user john has friends as victor and

[Rails] HTTP Digest Authentication not working

2009-04-09 Thread javinto
Hi to all, I've created a new project with Rails 2.3.2 and literally copied the HTTP Digest Authententication example from the documentation into a SecretsController: class SecretsController ApplicationController Users = {dhh = secret} before_filter :authenticate def secret render

[Rails] difference in writing a class file in lib and models folder

2009-04-09 Thread Sijo Kg
Hi I would like to know the difference between writing our own class file(or module) in lib folder and models folder (Or any other folder). Actually what is the use of this lib folder in rails..Cant I write the same in models folder (not inheriting from ActiveRecord class) Thanks in advance

[Rails] Re: Finding record between 2 dates

2009-04-09 Thread Vaibhav Deshpande
Andrew Timberlake wrote: I used @date2ss = Date2.find(:all, :conditions = ID '+ @date1 +' and ID '+ @date2+') and it works.. thanks, Vaibhavi -- You can also use Model.find(:all, :conditions = {:date = date1..date2}) Andrew Timberlake http://ramblingsonrails.com

[Rails] Re: difference in writing a class file in lib and models folder

2009-04-09 Thread Julian Leviston
Lib is mostly for your own classes that don't change much. Hence, in dev mode Theyre not reloaded. Models are. Models can be any classes, inheriting from anywhere. They're or your business objects Blog: http://random8.zenunit.com/ Learn rails: http://sensei.zenunit.com/ On 09/04/2009, at

[Rails] Re: difference in writing a class file in lib and models folder

2009-04-09 Thread Andrew Timberlake
On Thu, Apr 9, 2009 at 12:01 PM, Julian Leviston jul...@coretech.net.au wrote: Lib is mostly for your own classes that don't change much. Hence, in dev mode Theyre not reloaded. Models are. Models can be any classes, inheriting from anywhere. They're or your business objects Blog:

[Rails] Test helpers in Rails-2.3.2

2009-04-09 Thread annu
hey Iam runing on latestproject rails 2.3.2, strangley i seee that my test cases are not working. I wonder if any body bumped into the same ..., thanks in advance and let me know if I need to pass on more info... Thanks ANAS --~--~-~--~~~---~--~~ You

[Rails] Re: Join query in rails

2009-04-09 Thread Andrew Timberlake
On Thu, Apr 9, 2009 at 12:40 PM, Newb Newb rails-mailing-l...@andreas-s.net wrote: Hi.. how i should write the below query in rails.i found through mysql tutorial.i m not pro in rails ..so give some lights SELECT * FROM contactinfo join userinfo on contactinfo.contact_id = userinfo.id

[Rails] Re: Join query in rails

2009-04-09 Thread Priya Buvan
Newb Newb wrote: Hi.. how i should write the below query in rails.i found through mysql tutorial.i m not pro in rails ..so give some lights SELECT * FROM contactinfo join userinfo on contactinfo.contact_id = userinfo.id where contactinfo.user_id = 25 Thanks in advance @contactinfo=

[Rails] images in select combo box

2009-04-09 Thread joel
Hello All, does someone know how to add images (icons) as options in a select tag ? Thanks in advance, Joel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send

[Rails] MVC

2009-04-09 Thread mift99
Hi, i am wondering about the MVC pattern, I havent worked with that for a long time and before I break it I would like to ask your advice... if I have a birthday calender visible in nearly every view where would I put the controller? I was thinking about putting the method it into application

[Rails] Re: MVC

2009-04-09 Thread Gavin
could you explain the birthday calendar method a little better? On Apr 9, 12:49 pm, mift99 philipp.knobelsp...@gmail.com wrote: Hi, i am wondering about the MVC pattern, I havent worked with that for a long time and before I break it I would like to ask your advice... if I have a

[Rails] Re: Getting the top results only by group in a .find stateme

2009-04-09 Thread Madhusudhan H R
Tyl Tan wrote: This is my table model name is bids id | bid | keyword 1 | 2 | orange 2 | 3 | orange 3 | 1 | red 4 | 3 | blue 5 | 6 | red what i want is the get these the top bidder of each unique keyword in one .find statement As per my knowledge Table name

[Rails] mailing list

2009-04-09 Thread martina
hello all, how to implement mailing list concept for rails application? what are the requirements to do mailing list? If possible suggest some links? Im using rails 2.0.2 version. --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[Rails] Data is not passing from Form to controller actions

2009-04-09 Thread Vaibhav Deshpande
How to render the data from form to controller actions? This is my controller:- class ViewController ApplicationController def index end def new @txt=params[:txt] end end Index Page:- form method='post'action='view/new' input type=text name=txt input type=submit /form

[Rails] How to run 2.2.2 and 2.3 / 1.8.7 and 1.9 on same dev box

2009-04-09 Thread Bartee Lamar
I am starting new project and want to jump into the 2.3 / 1.9 world. How do I run both envirnments on same box. I inderstand I can freeze 2.2.2 in my current aps, but a little lost on the 1.8.7 and 1.9 ruby runtime world. -- Posted via http://www.ruby-forum.com/.

[Rails] web service for processing files

2009-04-09 Thread sullivan.t
Not sure, really, where to ask this - and Rails is the first thing I think of when I want to wireframe something and know, due to the corporate world, it will end up in production anyway. (And that's ok.) I need a service that will process files over our network (https). Been needing a way to

[Rails] Rails on westhost.com

2009-04-09 Thread softland...@gmail.com
I have an account on westhost, but they are at rails version 1.2.3 I did a 'gem install rails -v=2.2.2 That seem to work. The output of gem list is: *** LOCAL GEMS *** actionmailer (2.2.2, 1.3.3) actionpack (2.2.2, 1.13.3) actionwebservice (1.2.3) activerecord (2.2.2, 1.15.3) activeresource

[Rails] saving mutliple objects to database

2009-04-09 Thread Adam Akhtar
If i create in memory a hundred or so instances of a model, how do i go about saving them to the database. I have a Task Model and say I have an array of Task obects @tasks = [...] how do i save them do i @tasks.each do |task| task.save end ? -- Posted via http://www.ruby-forum.com/.

[Rails] Mailing error in Rails 2.3.2

2009-04-09 Thread Siddu
Hi, My mails were working with the earlier version of rails ie. Rails 2.0.2. But recently when i upgraded my environment to 2.3.2 the mails stopped working and gave Error: End of file reached. But if i send mails independent of my rails app the mailing code works fine. My Environment: Windows

[Rails] Re: Join query in rails

2009-04-09 Thread Newb Newb
Priya Buvan wrote: Newb Newb wrote: Hi.. how i should write the below query in rails.i found through mysql tutorial.i m not pro in rails ..so give some lights SELECT * FROM contactinfo join userinfo on contactinfo.contact_id = userinfo.id where contactinfo.user_id = 25 Thanks in

[Rails] Re: Rails 2.3 Upgrade Issue with MemCache

2009-04-09 Thread Steve Odom
Unfortunately it didn't solve the problem. I guess I could switch over to starling and that might solve it. On Apr 8, 9:16 am, tomrossi7 t...@themolehill.com wrote: Ugh.  But did it solve the problem? On Apr 8, 9:59 am, Steve Odom steve.o...@gmail.com wrote: Thanks Tom. The crappy part is

[Rails] Re: Join query in rails

2009-04-09 Thread Andrew Timberlake
On Thu, Apr 9, 2009 at 3:14 PM, Newb Newb rails-mailing-l...@andreas-s.net wrote: Priya Buvan wrote: Newb Newb wrote: Hi.. how i should write the below query in rails.i found through mysql tutorial.i m not pro in rails ..so give some lights SELECT * FROM contactinfo join userinfo on

[Rails] Re: Mailing error in Rails 2.3.2

2009-04-09 Thread Siddu
Here is the stack trace c:/ruby-1.8.7/lib/ruby/1.8/net/protocol.rb:135:in `sysread' c:/ruby-1.8.7/lib/ruby/1.8/net/protocol.rb:135:in `rbuf_fill' c:/ruby-1.8.7/lib/ruby/1.8/timeout.rb:62:in `timeout' c:/ruby-1.8.7/lib/ruby/1.8/timeout.rb:93:in `timeout'

[Rails] TypeError problem with active_merchant

2009-04-09 Thread Lee Richmond
Hi folks I'm doing some work on a project with active_merchant and I keep getting the following error: [b][i] TypeError in CheckoutController#place_order exception class/object expected [/i][/b] heres the piece of code from my controller that correpsonds: [cod...@order =

[Rails] Re: Rails 2.3 Upgrade Issue with MemCache

2009-04-09 Thread tomrossi7
Steve, I put a debugger statement in the plugin to figure out the problem. The error is definitely telling you that memcache hasn't been loaded. You may need to move that require 'memcache' statement around to make sure it is loading. Let me know what you find... Thanks, Tom On Apr 9, 9:18 

[Rails] Re: datepicker array

2009-04-09 Thread Me
OH, it is a FORM, doh. Also the partial may be rendered multiple times. On Apr 8, 8:24 pm, Me chabg...@gmail.com wrote: I have a from that will require multiple dates and or times. I am using the jquery datepicker that I have been using for a long time. I am doing this in a partial for

[Rails] Re: Having trouble extending a class from a Rails plugin

2009-04-09 Thread Jason Fox
Maurício Linhares wrote: Thanks again for the reply Maurício. You just figured out the problem by yourself :) I'm curious as to why it works if I paste the extended class definition into environment.rb. I also found that if I include the following at the end of my environment.rb it works

[Rails] Re: How to run 2.2.2 and 2.3 / 1.8.7 and 1.9 on same dev box

2009-04-09 Thread Bartee Lamar
Oh Yea... I run on an Ubuntu dev box So I am sure that will make some difference -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to

[Rails] cucumber + authlogic trouble

2009-04-09 Thread scott
i am trying to learn testing for rails apps. i followed the two authlogic tutorials (basic authlogic setup and password reset) and now i am trying to add some integration tests with cucumber (i know you are supposed to do the tests 1st, but i am just trying to figure out how things work). i

[Rails] Create databse tables

2009-04-09 Thread Luca Vaudano
Hi all! I am a RoR newbie. I want to install an exist RoR project. I installed all but I cannot create the database tables. I configure my config/database.yml and it works because if I run the command rake db:create the application creates the db in my MySQL database. But this command create

[Rails] Re: Create databse tables

2009-04-09 Thread Agustin Nicolas Viñao Laseras
Try rake db:schema:load (Load a schema.rb file into the database). If you see rake -T, there is all options for rake. ___ Agustin Viñao www.agustinvinao.com agustinvinao (Skype) On Thu, Apr 9, 2009 at 12:07 PM, Luca Vaudano rails-mailing-l...@andreas-s.net wrote: Hi

[Rails] Re: Create databse tables

2009-04-09 Thread Luca Vaudano
Thanks for the quick reply! I already saw on Internet all the rake commands but also rake db:schema:load gives me an error because it tries to apply a patch in a non-existing table: rake aborted! Mysql::Error: Table 'mathwiki_development.mathwiki_settings' doesn't exist: SHOW FIELDS FROM

[Rails] map.connect '' doesn't work

2009-04-09 Thread CiriusMex
Hi, got a problem with the map.connect '' in my website (I don't know much of routes as I never really checked it). Ok so I just want to redirect automaticaly the users to my index page when they get to the site. So the idea is that using the address http://localhost:3000; using a route the user

[Rails] Storing request-scoped data in a model

2009-04-09 Thread Shak Shak
Hi all, What is the best way to store variables strictly for the lifetime of a Rails' request? I'm currently storing AR records in Rails.cache. Although this saves a trip to the DB, I feel it's unnecessary to hit the cache more than once per request (even when using MemoryStore there are

[Rails] Re: cucumber + authlogic trouble

2009-04-09 Thread James Byrne
Scott Nj wrote: i am trying to learn testing for rails apps. i followed the two authlogic tutorials (basic authlogic setup and password reset) and now i am trying to add some integration tests with cucumber (i know you are supposed to do the tests 1st, but i am just trying to figure out how

[Rails] Re: map.connect '' doesn't work

2009-04-09 Thread Brandon Olivares
-Original Message- From: rubyonrails-talk@googlegroups.com [mailto:rubyonrails- t...@googlegroups.com] On Behalf Of CiriusMex Sent: Thursday, April 09, 2009 11:36 AM To: Ruby on Rails: Talk Subject: [Rails] map.connect '' doesn't work Hi, got a problem with the map.connect ''

[Rails] rake db:test:prepare vs. rake db:test:clone

2009-04-09 Thread James Byrne
PostgreSQL 8.1.5 Rails 2.3.2 CentOS 5.3 I have discovered when using postgresql as the test dbms that these two tasks create different schemas. db:test:prepare creates a database with all functions and triggers defined in the development schema while db:test:clone omits these elements and

[Rails] Re: Rails on westhost.com

2009-04-09 Thread Matt Harrison
softland...@gmail.com wrote: I can create an app just fine: rails demoapp But when I create a controller I get the following error: $ ruby script/generate controller say /usr/local/ruby-1.8.6/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/ initializer.rb:259:in `require_frameworks': no such

[Rails] 501 : missing or malformed local part

2009-04-09 Thread semi
I get this error when trying to use the actionmailer gem: Net::SMTPSyntaxError in EmailerController#sendmail 501 : missing or malformed local part Application Trace | Framework Trace | Full Trace /usr/lib/ruby/1.8/net/smtp.rb:680:in `check_response' /usr/lib/ruby/1.8/net/smtp.rb:653:in

[Rails] Re: map.connect '' doesn't work

2009-04-09 Thread scott
what errors are you seeing? did you delete the index.html file in the public folder? On Apr 9, 12:38 pm, CiriusMex cirius...@gmail.com wrote: Hmmm, doesn't work neither :( Change to: map.root :controller = 'dentistmanager', :action = index Brandon- Ocultar texto de la cita - -

[Rails] Re: map.connect '' doesn't work

2009-04-09 Thread CiriusMex
Great, I deleted the index.html in the public folder and did the trick! Didn't knew that one, thanks a lot to the both of you for the help ^^ On 9 abr, 11:45, scott scot...@gmail.com wrote: what errors are you seeing? did you delete the index.html file in the public folder? On Apr 9, 12:38 

[Rails] Re: Problem when migrating from rails 2.2.2 to rails 2.3.2 on linux SLES10 + apache 2

2009-04-09 Thread Madchipset
Thanks a lot for your reply Fred. First, I checked with my app : I started it fine without the cluster (script/server -e production) and it worked nice. Then I created a basic app without any plugin (rails test), showing only the standard page Welcome aboard. Again it worked fine without the

[Rails] method_exists? is missing?

2009-04-09 Thread James Byrne
In a controller run through webrick I do this: @entity = Entity.new print @entity.methods.sort.to_yaml and I see this: - logger - mark_for_destruction - marked_for_destruction? - metaclass - method - method_missing - methods - new_record? There is no method_exists? method. If I instead do

[Rails] Re: What's 'logger', really

2009-04-09 Thread Tonypm
i find I cant send to logger in production mode if I am running a script/runner on a model method. Works in development mode, must be a reason for this although I cant figure it Output just seems to go nowhere Tonypm --~--~-~--~~~---~--~~ You received this

[Rails] Re: MVC

2009-04-09 Thread mift99
Thanks, so the solution is, just for everyone else facing the same proplems, (at least I hope): Write a helper method def birthday_helper (number_of_resutls) costumers_with_upcoming_birhtday = Costumer.find_near_birthday costumers_with_upcoming_birhtday=

[Rails] Re: JRuby on Rails on Google App Engine

2009-04-09 Thread Daniel Drehmer
Awesome! Looking foward to test this On 8 abr, 02:24, Ola Bini ola.b...@gmail.com wrote: Hi friends, As you might have heard, Google has released support for Java onAppEngine. I've been part of a preview, and know thatJRuby, Ruby on Rails and Merb works very well on it. More information

[Rails] can startups post equity-based techcofounder positions here and

2009-04-09 Thread gary krane (DavidvGoliath)
if so how. I do not find a moderator address at the bottom of your emails, otherwise i would have written that person. Yours truly for love, justice, and the planet, Gary Krane PhD Director/Founder, David vs Goliath Services (Fundraising and Publicity), Smarter More Fun Ways To Organize

[Rails] Routing error?

2009-04-09 Thread Ali
I hope this will be an easy question... I'm trying to migrate from Rails 1.2 to 2.1, and I must admit, the routing is somewhat confusing me. When I update a form, I'm getting a routing error. (No route matches {id}) It's because the update statement is getting assembled incorrectly somehow and

[Rails] Re: method_exists? is missing?

2009-04-09 Thread James Byrne
James Byrne wrote: So, what gives? Turns out I should be using #respond-_to? instead. Method_missing? is part of mocha. -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[Rails] '[' and ']' characters are not valid characters of a URI query component.

2009-04-09 Thread Phlip
Do the RFCs and whatnot list those characters as valid in a URI query? The question comes up because - despite Rails's joyful abuse of those characters to delimit records - some of our params are coming in not like this... record[first_name] = yo ...but like this: record first_NAME =

[Rails] Re: MVC

2009-04-09 Thread Kevin Elliott
On Apr 9, 2009, at 10:56 AM, mift99 wrote: so the solution is, just for everyone else facing the same proplems, (at least I hope): Write a helper method def birthday_helper (number_of_resutls) costumers_with_upcoming_birhtday = Costumer.find_near_birthday

[Rails] Attach CSV String as attachment

2009-04-09 Thread Mario Flores
I am trying to take a csv string output and send it as a file attachment, but keep my data is only coming out as gobbly gook. The csv string is valid going into the mailer action. Valid CSV id,name,dealer_code,created_at,quantity,total_quote,shipping_cost 112,Testing project,,Thu Apr

[Rails] Re: '[' and ']' characters are not valid characters of a URI query component.

2009-04-09 Thread Fernando Perez
The question comes up because - despite Rails's joyful abuse of those characters to delimit records ??? -- Posted via http://www.ruby-forum.com/. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails:

[Rails] After updating to Rails 2.3.2 whole enviroment broke. Help!!

2009-04-09 Thread Olaf S.
Hi, I don't know what to do. I upgraded to Rails 2.3.2 (from 2.2.2) and everything worked fine. Then I installed the gem gettext_rails following this manual: http://www.yotabanana.com/hiki/ruby-gettext-rails-migration.html At some point I realised that I cannot start my Application anymore nor

[Rails] Re: '[' and ']' characters are not valid characters of a URI query component.

2009-04-09 Thread Phlip
Fernando Perez wrote: The question comes up because - despite Rails's joyful abuse of those characters to delimit records ??? An URI is an URL. Rails packs records into them like this: .../controller/action?record[first_name]=norbertrecord[last_name]=theNark The params method unravels

[Rails] Re: '[' and ']' characters are not valid characters of a URI query component.

2009-04-09 Thread Philip Hallstrom
The question comes up because - despite Rails's joyful abuse of those characters to delimit records ??? An URI is an URL. Rails packs records into them like this: .../controller/action? record[first_name]=norbertrecord[last_name]=theNark The params method unravels them into

[Rails] need help on using workling/starling

2009-04-09 Thread kuvkir
Hello! My rails app's using a queue of tasks that should be handled asynchronously. Task handling should be done in the following way: 1. rails app does some basic logic and puts the further work into the queue of tasks. 2. task manager pops the task off the queue and either delegates it to a

[Rails] Re: Managing ads banner

2009-04-09 Thread Asim
On way to do this is as mentioned on this blog. I used it and it gave some simple steps to getting google ads up and running on my RoR application http://atservice.blogspot.com/2008/07/google-ad-sense-code-implementation.html On Mar 13, 9:37 pm, Youyou Semsem rails-mailing-l...@andreas-s.net

[Rails] Re: '[' and ']' characters are not valid characters of a URI query component.

2009-04-09 Thread Phlip
Philip Hallstrom wrote: Don't know for sure, but I know that in the late 90's PHP used [] for this exact same thing. Still does I would assume. So if it's browser forgiveness it's something that has been going on since at least 1996. As a shotgun attack, we upgraded our HTML headers

[Rails] Re: 501 : missing or malformed local part

2009-04-09 Thread Frederick Cheung
On Apr 9, 5:17 pm, semi seminole10...@yahoo.com wrote: I get this error when trying to use the actionmailer gem: Net::SMTPSyntaxError in EmailerController#sendmail 501 : missing or malformed local part http://rails.lighthouseapp.com/projects/8994/tickets/1842 ? Fred Application Trace

[Rails] Re: Problem when migrating from rails 2.2.2 to rails 2.3.2 on linux SLES10 + apache 2

2009-04-09 Thread Frederick Cheung
On Apr 9, 6:17 pm, Madchipset mad.chip...@voila.fr wrote: Thanks a lot for your reply Fred. First, I checked with my app : I started it fine without the cluster (script/server -e production) and it worked nice. Then I created a basic app without any plugin (rails test), showing only the

[Rails] ActiveRecord find/include question (MySQL)

2009-04-09 Thread gm gm
I found that if I do something like (on MySQL): File.all(:conditions = {'files.deleted' = false, 'assets.deleted' = false}, :include = :assets) will only return Files which have at least 1 assets associated with it. If i removed the assets.deleted = 0 condition, then it returns all Files, and

[Rails] ActiveRecord.save With No SELECT Privileges (MySQL)

2009-04-09 Thread Phoenix Rising
I'm writing a customer-facing application that's responsible for obtaining extremely sensitive data, much to my dismay and despite my vehement protests. Long story short, to stay in compliance with various policies, and because I'm insanely paranoid, I'll need to capture this user data and write

[Rails] Re: ActiveRecord find/include question (MySQL)

2009-04-09 Thread Frederick Cheung
On Apr 9, 10:39 pm, gm gm rails-mailing-l...@andreas-s.net wrote: I found that if I do something like (on MySQL): File.all(:conditions = {'files.deleted' = false, 'assets.deleted' = false}, :include = :assets) will only return Files which have at least 1 assets associated with it. If i

[Rails] Re: can startups post equity-based techcofounder positions here and

2009-04-09 Thread Frederick Cheung
On Apr 9, 7:19 pm, gary krane (DavidvGoliath) davidvgoli...@gmail.com wrote: if so how. Same way as you would post any other question (although we do ask that posts about jobs have [JOBS] in the subject line). Fred I do not find a moderator address at the bottom of your   emails,

[Rails] Another TimeZone Question - Multiple Legacy Databases

2009-04-09 Thread Mike P
We had to create a reporting software that connects to multiple databases that are all in different time zones. Is there any way for us to tell Rails which time zone each database is in and still be able to have time zone support? I need to be able to tell rails to pull the data from the various

[Rails] Re: ActiveRecord.save With No SELECT Privileges (MySQL)

2009-04-09 Thread Frederick Cheung
On Apr 9, 10:57 pm, Phoenix Rising polarisris...@gmail.com wrote: I'm writing a customer-facing application that's responsible for obtaining extremely sensitive data, much to my dismay and despite my vehement protests.  Long story short, to stay in compliance with various policies, and

[Rails] Re: Routing error?

2009-04-09 Thread Ali
I figured it out. I was using form_tag :action = 'update' instead of form_for and that was causing the update statement to be incorrectly assembled. Thanks anyway!! On Apr 9, 11:38 am, Ali awilli...@washoecounty.us wrote: I hope this will be an easy question... I'm trying to migrate from

[Rails] p3p policy and rails 2.3

2009-04-09 Thread Marcelo Barbudas
Hi, Has anyone encountered a problem where IE6 rejects all P3P policies sent by Rails/Nginx? I had a simple setup that worked in 2.2.2 and it doesn't anymore: Server: nginx/0.6.32 Date: Fri, 10 Apr 2009 00:03:36 GMT Content-Type: text/html; charset=utf-8 Connection: keep-alive Set-Cookie:

[Rails] render problems in upgrading from 2.1.2 to 2.3.2

2009-04-09 Thread Bharat Ruparel
My custom layout file for the AdminController in in views/layouts/admin.html.erb and has the following code: % content_for :secondary_nav do % %= sub_navigation [:prospect_statuses, :client_statuses, :business_statuses, :discounts, :features, :links, :user_types] % % end % %= render

[Rails] Re: uninitialized constant ActionView::Helpers::AssetTagHelper

2009-04-09 Thread johnrails
I've made some progress since this post. I've installed ruby and rubygems from source, and now when i run rake i get this error: Rails requires RubyGems = 0.9.4 (you have ). Please `gem update -- system` and try again. For some reason boot.rb can't find which version of rubygems i have

[Rails] adding methods, accessing from console and rake tasks

2009-04-09 Thread LukeG
another noob question... how do I add methods to a class such that they can be access from the console and from rake? Details: I have a ruby script to fetch tweets from the search api. That works fine, saves my tweets to the db. I have a separate, basic rails app to view and manage the tweets

[Rails] Re: '[' and ']' characters are not valid characters of a URI query component.

2009-04-09 Thread Phlip
I copied it out of the top of a WikiPedia page, so it doubtless has had the crap reviewed out of it... Also, we are naturally flattening our forms to not use [] in this context. We will also take out all the _, but that might just be collateral damage.

[Rails] Re: '[' and ']' characters are not valid characters of a URI query component.

2009-04-09 Thread Brandon Olivares
Hi, Just wondering why you are taking out the _? Brandon -Original Message- From: rubyonrails-talk@googlegroups.com [mailto:rubyonrails- t...@googlegroups.com] On Behalf Of Phlip Sent: Friday, April 10, 2009 12:04 AM To: rubyonrails-talk@googlegroups.com Subject: [Rails] Re: '['