[Rails] Re: Geokit:Google returned a 620 status, too many queries

2010-04-20 Thread Frederick Cheung
On Apr 20, 5:15 am, Smit Shah li...@ruby-forum.com wrote: Hi all, I am using geokit for google map. It works fine but some time it gives me error like It's telling you that you've hit a rate limit on google's geocoding api. You've pretty much got to do what the error message says (and

[Rails] Re: why is ActiveRecord tying to select nonex ID column?

2010-04-20 Thread Frederick Cheung
On Apr 20, 1:24 am, Fearless Fool li...@ruby-forum.com wrote: The call that generated the error was an ActiveRecord#update():         active_record.update_attributes(attributes) where attributes (in this instance) were: {:start_time_id=10991, :end_time_id=11021, :service_address_id=46,

[Rails] Authentication and Authorization

2010-04-20 Thread Marcelo Pereira
Hi there, I have been looking for a plugin to authenticate and authorize users in a ruby on rails application. I found some options like: Restful authentication, Authologic, Clearence and Devise. I would like to know your opinions about these plugins, so I can choose one to use in the app.

[Rails] problems getting started...

2010-04-20 Thread JSF
i've run update and update system... now, when i run script/server I get this output: -snip- /opt/local/lib/ruby/site_ruby/1.8/rubygems.rb:777:in `report_activate_error': RubyGem version error: rack(1.0.0 not ~ 1.0.1) (Gem::LoadError) from

[Rails] May need ruby developer

2010-04-20 Thread Nice Guy
Hi, I'm looking for a developer to help build an SMS messaging site. Basically, users will have the ability to sign up for subscriptions to receive daily SMS text messages of a particular topic. I know there are a lot of sites out there doing this already from horoscopes to diet tips, so there

Re: [Rails] Hello i new user Ruby On rails

2010-04-20 Thread agung sukariman putra
thx dude,.. but i have little proble with my RoR,.. if i should type gem install mysql on console.fault to connect.. -- 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-t...@googlegroups.com.

[Rails] Re: May need ruby developer

2010-04-20 Thread Frederick Cheung
On Apr 20, 2:42 am, Nice Guy igetm...@go.com wrote: I'm not too concerned about what is under the hood.  As an example, it could just be a skin on top of an SMS messaging service out there where I supply the front page, SMS content and the cost, the SMS service provides me access to user

Re: [Rails] problems getting started...

2010-04-20 Thread Franz Strebel
On Tue, Apr 20, 2010 at 3:04 AM, JSF jfree...@gmail.com wrote: `report_activate_error': RubyGem version error: rack(1.0.0 not ~ 1.0.1) (Gem::LoadError) That's the source of the error, you need to update your rack gem. Try: gem install rack -v 1.0.1 -- You received this message because you

[Rails] Google Map Key Error

2010-04-20 Thread Naresh
Hi All, I am working on the google map application when I uploaded my files i am getting the below error The given key has gone over the requests limit in the 24 hour period or has submitted too many requests in too short a period of time. Please help me Thanks in advance With Regards, Naresh

[Rails] Re: Google Map Key Error

2010-04-20 Thread Frederick Cheung
On Apr 20, 9:12 am, Naresh bonagiri.nar...@gmail.com wrote: Hi All, I am working on the google map application when I uploaded my files i am getting the below error The given key has gone over the requests limit in the 24 hour period or has submitted too many requests in too short a period

[Rails] Re: Possible to get random translation?

2010-04-20 Thread Zoran Szagaski
I think a model combined with globalize is the best way to store hundreds of strings in different languages. -- 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 this group, send email to

[Rails] Rails 3 Phusion Passenger - Ruby (Rack) application could not be started

2010-04-20 Thread Paul Jonathan Thompson
I am getting this message Ruby (Rack) application could not be started when I attempt to run my application on Apache with Phusion Passenger. Under Webrick it runs just fine. This is what appears on the screen: # File LineLocation 0

Re: [Rails] Rails 3 Phusion Passenger - Ruby (Rack) application could not be started

2010-04-20 Thread Andy Jeffries
There's normally an actual error above that, you've posted the stack trace (which is useful after you know what the error is). Cheers, Andy -- Andy Jeffries http://andyjeffries.co.uk/ #rubyonrails #mysql #jquery Registered address: 64 Sish Lane, Stevenage, Herts, SG1 3LS Company number:

[Rails] Re: Authentication and Authorization

2010-04-20 Thread bramu...@gmail.com
You can use Devise for authentication and for Authorization you can go with cancan... If you already know how to install configure and work with these plugins then OK otherwise there are railscasts to start with .. I hope this helps... - Ramu. On Apr 20, 4:23 am, Marcelo Pereira

Re: [Rails] Rails 3 Phusion Passenger - Ruby (Rack) application could not be started

2010-04-20 Thread Kleber Shimabuku
Hi, I was getting the same error as you, I did try install rails 3 beta 3 with some ruby versions, also tryed to install with the new passenger 2.2.12 available on Github, but always getting an error like that. Or just ruby crash when trying to load a simple scaffold or trying to see information

[Rails] Master table without related child record

2010-04-20 Thread Andy Jeffries
Having a bit of a braindead day, can anyone help with this. I have three models: Player, Game, Prediction (Player has_many :games, :through = :prediction) I want a named_scope that finds games that the current player hasn't already predicted. I started with something like this: named_scope

Re: [Rails] Authentication and Authorization

2010-04-20 Thread Leonardo Mateo
On Mon, Apr 19, 2010 at 8:23 PM, Marcelo Pereira marcel...@gmail.com wrote: Hi there, I have been looking for a plugin to authenticate and authorize users in a ruby on rails application. I found some options like: Restful authentication, Authologic, Clearence and Devise. I would like to

[Rails] Invitation to connect on LinkedIn

2010-04-20 Thread Minqi Pan
LinkedIn Minqi Pan requested to add you as a connection on LinkedIn: -- Mitin, I'd like to add you to my professional network on LinkedIn. - Minqi Accept invitation from Minqi Pan

[Rails] Heroku deployment...

2010-04-20 Thread shyam mohan
Hi please help me... git push heroku master Warning: Permanently added the RSA host key for IP address to the list of known hosts. Permission denied (publickey). fatal: The remote end hung up unexpectedly please tell why im getting this error... and how to correct it... I google about it but

Re: [Rails] Master table without related child record

2010-04-20 Thread Franz Strebel
On Tue, Apr 20, 2010 at 2:19 PM, Andy Jeffries a...@andyjeffries.co.uk wrote: Having a bit of a braindead day, can anyone help with this. I have three models: Player, Game, Prediction (Player has_many :games, :through = :prediction) I want a named_scope that finds games that the current

[Rails] Re: creating custom form error handling

2010-04-20 Thread pepe
You'll need to write a custom validation, I think, if you want to highlight more than 1 field for a given condition. if end_time start_time errors.add :start_time, 'your message here' errors.add :start_time, 'your message here' end What I have never tried is to hightlight a field without a

Re: [Rails] Master table without related child record

2010-04-20 Thread Andy Jeffries
Having a bit of a braindead day, can anyone help with this. I have three models: Player, Game, Prediction (Player has_many :games, :through = :prediction) I want a named_scope that finds games that the current player hasn't already predicted. How about tackling it from the Player

[Rails] Database query question

2010-04-20 Thread Patrick Clas
I'm new to rails and I'm also new to database access so hopefully this will be easy to answer, and hopefully I can explain it well enough to be understood. I've got ActiveRecord objects that all relate to eachother. User and Game have a many to many relationship connected via GameCollection.

[Rails] Best practice around putting rails database info into git

2010-04-20 Thread Pito Salas
This maybe too vague a question, but I wonder if there's some wisdom out there for me to tap... Sometimes when I get ready to commit, git says that db/schema.rb has changed. This is weird, and I think it's because I did a rake db:migrate. So my question is, what's the best practice relating to

[Rails] Re: why is ActiveRecord tying to select nonex ID column?

2010-04-20 Thread Fearless Fool
Frederick Cheung wrote: It is a pretty fundamental assumption of Active Record that tables have a primary key. There is (or at least there used to be) a plugin out there that added support for composite primary keys Fred @fred: You may be right, but in that case, the documentation is wrong.

Re: [Rails] Re: why is ActiveRecord tying to select nonex ID column?

2010-04-20 Thread Michael Pavling
On 20 April 2010 15:33, Fearless Fool li...@ruby-forum.com wrote: And, as I hinted at, this IS a join table. It doesn't look like one to me - they tend to just have two fields; one for each foreign key. If it's a join table using a :through relationship, it still exists as a model in its own

Re: [Rails] Re: why is ActiveRecord tying to select nonex ID column?

2010-04-20 Thread Rimantas Liubertas
And, as I hinted at, this IS a join table. Alas, it is not. At least in RoR terms. What's interesting is that I cleared the table and rebuilt it -- no error.  When I tried to update the entire table (with identical values), it gave the same error on the same record.  Curiouser and curiouser.

[Rails] Javascript validations for word count in fckeditor

2010-04-20 Thread sunny
I need to count the number of words in fckeditor using javascript -- 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-t...@googlegroups.com. To unsubscribe from this group, send email to

[Rails] Re: Hello i new user Ruby On rails

2010-04-20 Thread arscariosus
At first, I read Why's (poignant) Guide to Ruby as an introductory course then used Patrick Lenz's Simply Rails 2.0 and Agile Web Development With Ruby on Rails 3rd Edition too. Try reading The Rails Way too. :D What OS are you using? On Apr 20, 1:38 pm, agung sukariman putra

[Rails] Re: Master table without related child record

2010-04-20 Thread Frederick Cheung
On Apr 20, 1:19 pm, Andy Jeffries a...@andyjeffries.co.uk wrote: Having a bit of a braindead day, can anyone help with this.  I have three models: Player, Game, Prediction (Player has_many :games, :through = :prediction) I want a named_scope that finds games that the current player hasn't

[Rails] Caching of data on server?

2010-04-20 Thread Pieter Hugo
Hi I am looking to speed up my rails application and am working through all the SQL queries and trying to remove unnecessary queries. I thought of the following and would love to hear whether it is possible. I have one (smallish - about 40 records) table which only gets read by my app - no

[Rails] Re: why is ActiveRecord tying to select nonex ID column?

2010-04-20 Thread Frederick Cheung
On Apr 20, 3:33 pm, Fearless Fool li...@ruby-forum.com wrote: @fred: You may be right, but in that case, the documentation is wrong. From http://api.rubyonrails.org/classes/ActiveRecord/ConnectionAdapters/Sc... we have: :id - Whether to automatically add a primary key column. Defaults

Re: [Rails] Database query question

2010-04-20 Thread Amala Singh
If you cannot make this perform quicker in ruby language, I am afraid that ROR will not be helpful in that way. ROR is basically a framework for quick development and maintenance. To improve the performance you need to either do it via backend or tweaking the ROR in a complex way to perform

[Rails] Re: Conditionally adding a link to a form -- how?

2010-04-20 Thread RichardOnRails
Hi Colin, The following in app\views\vendors\show.html.erb works perfectly %= link_to 'New Expense', '/expenses/new' % I have the following in app\controllers\vendors_controller.rb class VendorsController ApplicationController @show_new_expense_page = true [snip[ I now have in

[Rails] Smart localisation

2010-04-20 Thread jhaagmans
Hi, I have some trouble using Il8n. I've had these problems for a while now and always used rough workarounds, but as my productivity needs to go up another notch, I was wondering whether there was any way of avoiding these workarounds. For example: When I'm inside a view (say 'home/index') and

Re: [Rails] Caching of data on server?

2010-04-20 Thread Fidel Viegas
Hi Hugo, Have a look at Rails caching. Here is a tutorial http://railscasts.com/episodes/115-caching-in-rails-2-1 All the best, Fidel. On Tue, Apr 20, 2010 at 2:55 PM, Pieter Hugo li...@ruby-forum.com wrote: Hi I am looking to speed up my rails application and am working through all the

[Rails] Re: Caching of data on server?

2010-04-20 Thread jhaagmans
Hi Pieter, Rails does some class caching in the default production environment. There's more you can do though. It depends on what kind of website you have. If you only serve semi-static content, caching your pages (or parts of it) will improve your speed incredibly. No queries will be made until

[Rails] Re: why is ActiveRecord tying to select nonex ID column?

2010-04-20 Thread Fearless Fool
My error in terminology -- it's not a join table, but rather a fact table in the Dimensional Database sense. Would it be any different if this was a HABTM table? Frederick Cheung wrote: ...If you're going do be doing foo.save! (or foo.update_attributes which calls save) then you need a

Re: [Rails] Re: Caching of data on server?

2010-04-20 Thread Peter Hickman
I have done something similar with a small data set that was being referenced a lot. In the end however the improvement, whilst noticeable, was not that significant. Does this data set used as it is or is it transformed before use? If so it might make sense to cache the transformed data or even

Re: [Rails] Heroku deployment...

2010-04-20 Thread anton effendi
please run 'heroku help' and look add public into heroku run it please.. Thank you On Tue, Apr 20, 2010 at 7:57 PM, shyam mohan shyammohankano...@gmail.comwrote: Hi please help me... git push heroku master Warning: Permanently added the RSA host key for IP address to the list of known

Re: [Rails] Invitation tracking

2010-04-20 Thread saideep a.v.s
Hello, Simple way is by maintaining a table with a boolean, if accepted or not. I dont know if a plugin exists for this purpose. Best Wishes, Saideep Annadatha On Mon, Mar 22, 2010 at 10:11 PM, badnaam asitkmis...@gmail.com wrote: Hi, Here is my use case... A user of the site can

[Rails] reg exp

2010-04-20 Thread ES
What would the reg expression be for a string of 13 consecutive digits in javascript? var textfieldIdRegexp = /^\d{13}/; ? -- 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

[Rails] Re: why is ActiveRecord tying to select nonex ID column?

2010-04-20 Thread Frederick Cheung
On Apr 20, 4:42 pm, Fearless Fool li...@ruby-forum.com wrote: My error in terminology -- it's not a join table, but rather a fact table in the Dimensional Database sense.  Would it be any different if this was a HABTM table? Frederick Cheung wrote: ...If you're going do be doing

[Rails] Re: why is ActiveRecord tying to select nonex ID column?

2010-04-20 Thread Fearless Fool
So (apologies to Fred) this may be deeper than I thought: How does a HABTM table EVER get updated? From the Rails 1.9.1 active_record/base.rb sources, update_attributes = save = create_or_update = update. The sources for update(): # Updates the associated record with values matching

[Rails] api.rubyonrails.org site is taken over by a domain squatter

2010-04-20 Thread dkindlund
All, Visiting http://api.rubyonrails.org now redirects to an domain squatter page. If you're not seeing it (probably because the original site may still be cached by an upstream proxy), look at CorelCDN's cached version of the page: http://api.rubyonrails.org.nyud.net/ $ nslookup

[Rails] Re: Database query question

2010-04-20 Thread Frederick Cheung
On Apr 20, 3:19 pm, Patrick Clas li...@ruby-forum.com wrote: I'm new to rails and I'm also new to database access so hopefully this will be easy to answer, and hopefully I can explain it well enough to be understood. I've got ActiveRecord objects that all relate to eachother.  User and

[Rails] Re: why is ActiveRecord tying to select nonex ID column?

2010-04-20 Thread Fearless Fool
Fred, as I said: apologies! But since you clearly understand better than I do, I'm hoping you can enlighten me as to how HABTM tables ever get updated? Or how a single entry in a HABTM table gets deleted (since the delete method, like update, seems to depend on the existence of an id field)?

[Rails] Re: why is ActiveRecord tying to select nonex ID column?

2010-04-20 Thread Frederick Cheung
On Apr 20, 5:34 pm, Fearless Fool li...@ruby-forum.com wrote: So (apologies to Fred) this may be deeper than I thought: How does a HABTM table EVER get updated?  From the Rails 1.9.1 active_record/base.rb sources, update_attributes = save = create_or_update = update.  The sources for

[Rails] Re: why is ActiveRecord tying to select nonex ID column?

2010-04-20 Thread Fearless Fool
Frederick Cheung wrote: for a normal HABTM there is no corresponding model, so rows never get updated by this code path. The habtm association generates sql fragments directly and runs them Furthermore, because habtm is usually used as a 'dumb' join table, it's only ever a question of

[Rails] Re: api.rubyonrails.org site is taken over by a domain squatter

2010-04-20 Thread Frederick Cheung
On Apr 20, 4:57 pm, dkindlund dkindl...@gmail.com wrote: All, Visitinghttp://api.rubyonrails.orgnow redirects to an domain squatter page. If you're not seeing it (probably because the original site may still be cached by an upstream proxy), look at CorelCDN's cached version of the page:

[Rails] Gem install/update errors

2010-04-20 Thread Stacy Vlasits
%USERPROFILE%\Documents\Programs\rails_apps\history gem update rails ERROR: While executing gem ... (ArgumentError) uri scheme is invalid Updating installed gems Process gem exited with code 1 I received this error first while attempting 'gem install will_paginate' and have been unable to do

Re: [Rails] Re: Conditionally adding a link to a form -- how?

2010-04-20 Thread Colin Law
On 20 April 2010 16:03, RichardOnRails richarddummymailbox58...@uscomputergurus.com wrote: Hi Colin, The following in app\views\vendors\show.html.erb works perfectly %= link_to 'New Expense', '/expenses/new' % I have the following in app\controllers\vendors_controller.rb class

[Rails] Re: Database query question

2010-04-20 Thread Patrick Clas
Amala Singh wrote: If you cannot make this perform quicker in ruby language, I am afraid that ROR will not be helpful in that way. ROR is basically a framework for quick development and maintenance. To improve the performance you need to either do it via backend or tweaking the ROR in a

[Rails] User activation

2010-04-20 Thread Rutvij Pandya
Dear all, I am using restful authentication plug-in for user registration authentication. What I want to do is, when user submit registration form, a link containing activation code 'll be generated is to be sent to user via mail. User need to click the link sent to his mail Id to activate

[Rails] Ruby existing database

2010-04-20 Thread Will Raffaele
Hello all from Ruby newbie, I'm sure this has been asked many times, but I can't find the answer. I would like to use Ruby for an existing database. It does not use id for the primary key, and the table name are not plural. The tables are already loaded and filled with data. How can I get

Re: [Rails] Re: Hello i new user Ruby On rails

2010-04-20 Thread agung sukariman putra
I am using windows XP sp3.. it suck,.. soon i will buy macbook ,. -- 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-t...@googlegroups.com. To unsubscribe from this group, send email to

[Rails] Ruby Summer of Code Project

2010-04-20 Thread Federico Builes
Hi, As part of my Ruby SOC proposals I'm thinking of working in the CI idea posted in http://wiki.rubyonrails.org/rubysoc/2010/ideas Ideally, I'd like to do a two step proposal: first one would be writing custom CI tool tailored specifically for Rails where we can see more relevant information.

Re: [Rails] Ruby existing database

2010-04-20 Thread Craig White
On Tue, 2010-04-20 at 19:50 +0200, Will Raffaele wrote: Hello all from Ruby newbie, I'm sure this has been asked many times, but I can't find the answer. I would like to use Ruby for an existing database. It does not use id for the primary key, and the table name are not plural. The

[Rails] Re: Rails 3 + Rspec 2 + Remarkable

2010-04-20 Thread cjharrelson
I care most about: Remarkable ActiveRecord Remarkable Rails Do you have anything working yet? I bundled your fork and could not get it working this past weekend. Any status info would be appreciated. Also, if you need some help please let me know. I am willing to contribute. I am midas on

[Rails] api.rubyonrails.org / guides.rubyonrails.org

2010-04-20 Thread Alan Gutierrez
Is it just me, or is everyone seeing backpack girl at http://api.rubyonrails.org/ and http://guides.rubyonrails.org/ ? Alan Gutierrez http://twitter.com/bigeasy -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To post to this group, send

Re: [Rails] Best practice around putting rails database info into git

2010-04-20 Thread Vladimir Rybas
1. I usually put my db/schema.rb to .gitignore. There's some rake task to create your database not from migrations, but from schema.rb. But I didn't see anybody alive doing this. So, you don't really need this file in your repo. 2. You run your new migrations as soon as you get them. So, after

Re: [Rails] api.rubyonrails.org / guides.rubyonrails.org

2010-04-20 Thread Philip Hallstrom
It's everyone. Same problem with the domain registrar as last year. On Apr 20, 2010, at 11:20 AM, Alan Gutierrez wrote: Is it just me, or is everyone seeing backpack girl at http://api.rubyonrails.org/ and http://guides.rubyonrails.org/ ? Alan Gutierrez http://twitter.com/bigeasy -- You

Re: [Rails] Ruby Summer of Code Project

2010-04-20 Thread Chad Woolley
On Tue, Apr 20, 2010 at 10:33 AM, Federico Builes federico.bui...@gmail.com wrote: Hi, As part of my Ruby SOC proposals I'm thinking of working in the CI idea posted in http://wiki.rubyonrails.org/rubysoc/2010/ideas Ideally, I'd like to do a two step proposal: first one would be writing

[Rails] Re: Smart localisation

2010-04-20 Thread jhaagmans
Oh an to be complete about the first thing: I know I can get the controller/action translations by doing t('controller.action.translation'), but I'd like to integrate my localisation more into my application. Of course I could write a method to extend t(), but I've done stuff like that before only

[Rails] Re: Best practice around putting rails database info into git

2010-04-20 Thread Pito Salas
Vladimir Rybas wrote: 1. I usually put my db/schema.rb to .gitignore. There's some rake task to create your database not from migrations, but from schema.rb. But I didn't see anybody alive doing this. So, you don't really need this file in your repo. 2. You run your new migrations as

[Rails] Can I access another apps mysql database with my rails app?

2010-04-20 Thread Ast Jay
Sorry if the answer is obvious (nube alert) but would it be possible for me to access the DB of a php app using a mysql database, from within my Rails app? I want to install my (php) forums in forum.site.com, and my main site (using rails) will be at the root, site.com - so could I list the

[Rails] Re: Best practice around putting rails database info into gi

2010-04-20 Thread Robert Walker
Pito Salas wrote: This maybe too vague a question, but I wonder if there's some wisdom out there for me to tap... Sometimes when I get ready to commit, git says that db/schema.rb has changed. This is weird, and I think it's because I did a rake db:migrate. So my question is, what's the

Re: [Rails] Can I access another apps mysql database with my rails app?

2010-04-20 Thread Philip Hallstrom
Sorry if the answer is obvious (nube alert) but would it be possible for me to access the DB of a php app using a mysql database, from within my Rails app? I want to install my (php) forums in forum.site.com, and my main site (using rails) will be at the root, site.com - so could I list the

[Rails] Re: Javascript validations for word count in fckeditor

2010-04-20 Thread Robert Walker
sunny wrote: I need to count the number of words in fckeditor using javascript Did you make any effort to search this out for yourself. There are plenty of examples of this to be found using a simple Google search. Google: javascript word count And to get you started you could base a solution

[Rails] Re: api.rubyonrails.org site is taken over by a domain squatter

2010-04-20 Thread dan
is there a direct ip for ruby rails site? -- 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-t...@googlegroups.com. To unsubscribe from this group, send email to

[Rails] Re: Can I access another apps mysql database with my rails app?

2010-04-20 Thread Ast Jay
Philip Hallstrom wrote: mysql database directly? Guess I would just need to give it username/pw for the db, and the mysql query? Is it going to be easy enough to do, or should I stick with a full php solution (can't drop PHP as we need a full featured forum like vB). That's one way

[Rails] Re: Javascript validations for word count in fckeditor

2010-04-20 Thread Robert Walker
Robert Walker wrote: And to get you started you could base a solution around: my_text_field.split(/\s/).length Correction: Make sure you get the string value for the text field for use with split(): jQuery example: $('#my_text_field').val().split(/\s/).length -- Posted via

[Rails] Re: reg exp

2010-04-20 Thread Robert Walker
ES wrote: What would the reg expression be for a string of 13 consecutive digits in javascript? var textfieldIdRegexp = /^\d{13}/; Do you mean a string matching exactly 13 digits? /^\d{13}$/ Or, a string containing a 13 digit sequence? /\d{13}/ Or, string starting with 13

Re: [Rails] Re: Can I access another apps mysql database with my rails app?

2010-04-20 Thread Philip Hallstrom
On Apr 20, 2010, at 1:16 PM, Ast Jay wrote: Philip Hallstrom wrote: mysql database directly? Guess I would just need to give it username/pw for the db, and the mysql query? Is it going to be easy enough to do, or should I stick with a full php solution (can't drop PHP as we need a full

[Rails] Re: Re: Can I access another apps mysql database with my rails app?

2010-04-20 Thread Ast Jay
Philip Hallstrom wrote: On Apr 20, 2010, at 1:16 PM, Ast Jay wrote: Would you know if it is easy enough to share sessions with a forum app such as vbulletin? Unlikely to be easy. But if the cookies are available and you're willing to parse the information you could do whatever you want.

Re: [Rails] api.rubyonrails.org / guides.rubyonrails.org

2010-04-20 Thread Mario Antonetti
I'm seeing this too. Anyone know what's going on? Mario On Tue, Apr 20, 2010 at 1:20 PM, Alan Gutierrez a...@blogometer.com wrote: Is it just me, or is everyone seeing backpack girl at http://api.rubyonrails.org/ and http://guides.rubyonrails.org/ ? Alan Gutierrez

Re: [Rails] api.rubyonrails.org / guides.rubyonrails.org

2010-04-20 Thread Dieter Lunn
The registrar is being a jacka** or payment wasn't received in time. Dieter Lunn http://www.coder2000.ca On Tue, Apr 20, 2010 at 1:31 PM, Mario Antonetti mjtan...@gmail.com wrote: I'm seeing this too.  Anyone know what's going on? Mario On Tue, Apr 20, 2010 at 1:20 PM, Alan Gutierrez

Re: [Rails] xml from a var

2010-04-20 Thread сбк
Make x variable class attribute by naming it @x and use next code in your View : %= @x % On Mon, Apr 19, 2010 at 8:45 PM, Chris Habgood chabg...@gmail.com wrote: No I am doing this: def assert_xml_message(type,msg) x = gen_basic_xml x.response do x.tag!(type) do x.message msg

[Rails] A way to build title

2010-04-20 Thread Thomas Allen
I would like to be able to easily build a title string. Here is how I am doing it right now (I have omitted parts not relevant): In the layout: title%= title %/title Which calls: module ApplicationHelper def title @title_parts.join ' | ' end end and @title_parts is build

[Rails] Spring Cleaning

2010-04-20 Thread David Zhu
Right now in my view, I have a whole HUGE clump of % if current_user % and then % if current_admin % and then % if current_teacher % and then all that other stuff in my view. I have a ginourmous chunk of if and else statements in my views... is there a way to make it prettier? The if and else's

[Rails] Re: User activation

2010-04-20 Thread khagimoto
Not sure which plug-in you're using, but this does what you've described: http://github.com/matthooks/authlogic-activation-tutorial (See Also: http://github.com/binarylogic/authlogic_example) -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk

[Rails] Re: User activation

2010-04-20 Thread Rutvij Pandya
khagimoto wrote: Not sure which plug-in you're using, but this does what you've described: http://github.com/matthooks/authlogic-activation-tutorial (See Also: http://github.com/binarylogic/authlogic_example) -- dear khagimoto, I am using

[Rails] Re: User activation

2010-04-20 Thread Marnen Laibow-Koser
Rutvij Pandya wrote: khagimoto wrote: Not sure which plug-in you're using, but this does what you've described: http://github.com/matthooks/authlogic-activation-tutorial (See Also: http://github.com/binarylogic/authlogic_example) -- dear khagimoto, I

[Rails] Re: Spring Cleaning

2010-04-20 Thread Marnen Laibow-Koser
David Zhu wrote: Right now in my view, I have a whole HUGE clump of % if current_user % and then % if current_admin % and then % if current_teacher % and then all that other stuff in my view. I have a ginourmous chunk of if and else statements in my views... is there a way to make it

[Rails] Re: Best practice around putting rails database info into git

2010-04-20 Thread Marnen Laibow-Koser
Vladimir Rybas wrote: 1. I usually put my db/schema.rb to .gitignore. There's some rake task to create your database not from migrations, but from schema.rb. But I didn't see anybody alive doing this. I do it. So, you don't really need this file in your repo. Completely wrong. You

[Rails] Re: Best practice around putting rails database info into git

2010-04-20 Thread Marnen Laibow-Koser
Pito Salas wrote: This maybe too vague a question, but I wonder if there's some wisdom out there for me to tap... Sometimes when I get ready to commit, git says that db/schema.rb has changed. This is weird, and I think it's because I did a rake db:migrate. Yes, that would probably be why.

[Rails] Re: reg exp

2010-04-20 Thread Marnen Laibow-Koser
ES wrote: What would the reg expression be for a string of 13 consecutive digits in javascript? var textfieldIdRegexp = /^\d{13}/; ? This has nothing to do with Rails, and should be asked on a JavaScript forum. Best, -- Marnen Laibow-Koser http://www.marnen.org mar...@marnen.org --

[Rails] Re: Ruby existing database

2010-04-20 Thread Marnen Laibow-Koser
Will Raffaele wrote: Hello all from Ruby newbie, I'm sure this has been asked many times, but I can't find the answer. I would like to use Ruby for an existing database. It does not use id for the primary key, and the table name are not plural. The tables are already loaded and

[Rails] Re: FORM fields sent to the CONTROLLER

2010-04-20 Thread David Zhu
Wait colin, I'm just hitting Reply at the bottom of the page. Isn't that what I'm supposed to do? I'm pretty sure everything is in chronological order as welll... what exactly do you mean? On Apr 19, 3:38 am, Sharagoz shara...@gmail.com wrote: I think he means how he can specify where the

[Rails] Re: Spring Cleaning

2010-04-20 Thread David Zhu
my question was how exactly to make that helper method On Apr 20, 6:00 pm, Marnen Laibow-Koser li...@ruby-forum.com wrote: David Zhu wrote: Right now in my view, I have a whole HUGE clump of % if current_user % and then % if current_admin % and then % if current_teacher % and then all

[Rails] Re: User activation

2010-04-20 Thread khagimoto
oops, sorry, I guess I skipped your first sentence! I've never used restful-authentication plug-in, but it sounds like it already has support for what you're asking for: http://github.com/technoweenie/restful-authentication/blob/master/README.textile I do recommend authlogic after having used it

Re: [Rails] xml from a var

2010-04-20 Thread сбк
Sorry, i mean object attribute. 2010/4/21 сбк overe...@gmail.com Make x variable class attribute by naming it @x and use next code in your View : %= @x % On Mon, Apr 19, 2010 at 8:45 PM, Chris Habgood chabg...@gmail.com wrote: No I am doing this: def assert_xml_message(type,msg) x =

[Rails] Re: Smart localisation

2010-04-20 Thread jhaagmans
If I should believe the things I find on the internet, this is the correct approach for form labels: --- en: activerecord: attributes: user: last_name: Surname --- And then: % form_for @user do |f| % %= f.label :last_name % %= f.text_field :last_name % % end % However,

[Rails] Re: api.rubyonrails.org site is taken over by a domain squatter

2010-04-20 Thread jhaagmans
You can use rubyonrails.com now. On Apr 20, 10:11 pm, dan mr.dan.ma...@gmail.com wrote: is there a direct ip for ruby rails site? -- 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

[Rails] Re: FORM fields sent to the CONTROLLER

2010-04-20 Thread Marnen Laibow-Koser
David Zhu wrote: Wait colin, I'm just hitting Reply at the bottom of the page. Isn't that what I'm supposed to do? Yes, but then type your reply *after* the relevant lines in the quoted text (as I'm doing here). This is the order in which you'd have a conversation. Best, -- Marnen

[Rails] Re: Spring Cleaning

2010-04-20 Thread Marnen Laibow-Koser
[Please quote when replying. It will make the context clearer.] David Zhu wrote: my question was how exactly to make that helper method Try it. What part don't you understand? Best, -- Marnen Laibow-Koser http://www.marnen.org mar...@marnen.org -- Posted via http://www.ruby-forum.com/. --

Re: [Rails] User activation

2010-04-20 Thread Hassan Schroeder
On Tue, Apr 20, 2010 at 10:44 AM, Rutvij Pandya li...@ruby-forum.com wrote:  I am using restful authentication plug-in for user registration authentication.  What I want to do is, when user submit registration form, a link containing activation code 'll be generated is to be sent to user

[Rails] Re: Database query question

2010-04-20 Thread Marnen Laibow-Koser
Patrick Clas wrote: I'm new to rails and I'm also new to database access so hopefully this will be easy to answer, and hopefully I can explain it well enough to be understood. I've got ActiveRecord objects that all relate to eachother. User and Game have a many to many relationship

[Rails] Can you recommend a great agile training program in the Bay Area?

2010-04-20 Thread drewB
Can anyone recommend a good few day training program for running agile teams in the Bay Area? I know there are a bunch out there but I was looking for some first hand recommendations. Basically, I am looking for a program that will help me implement agile processes in the development team I run.

[Rails] Re: Database query question

2010-04-20 Thread Patrick Clas
I thought this was possible using the update_all method of ActiveRecord...no? If not, then I will just write native sql commands instead. -- 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

  1   2   >