[Rails] Error in Bundler with PostgreSQL and Rails3

2010-02-07 Thread Michael Jurewitz
Hi there, I'm trying to get up and running with PostgreSQL 8.4 and the Rails 3 beta. I'm running on Ruby 1.8.7 via RVM and have installed the 'pg' gem. While I've been able to get the pg gem to successfully build, whenever I create a new rails app, tell it to use Postgres, and execute 'rails ser

[Rails] Parallel Payment Conflict Resolution in Paypal

2010-02-07 Thread Saurabh Peshkar
I want to use the paypal adaptive parallel payment API with ROR, please help me out regarding the following query. Query: Suppose there is a Buyer say B1 bought products, of different sellers say S1, S2, S3, from http://mysite.com. Some part of money will go to site administrator say A1. If any o

[Rails] Re: Rails 3 beta: "bundle install" not installing to the GEM_HOME

2010-02-07 Thread Gavin
Yes On Feb 8, 12:59 pm, Erol Fornoles wrote: > On Feb 8, 12:29 pm, Gavin wrote: > > > I've tried everything I can think of, but "bundle install" is still > > installing all new gems into /User/.gems.  My GEM_HOME is /usr/local/ > > lib/ruby/gems/.  Is this a bug? > > Have you tried "sudo bundle

[Rails] Re: getting going

2010-02-07 Thread Charlie Mezak
Actually, I was able to fix it by modifying the flickr.rb file from the gem at line 109. replaced it with the following: if collection collection.collect { |photo| Photo.new(photo['id'], @api_key) } else return nil end -- Posted via http://www.ruby-forum.com/. -- Yo

[Rails] Re: getting going

2010-02-07 Thread Charlie Mezak
bjorn wrote: > I'm wondering if it has to do with the flickr.rb (gem) and it not > handling back nil (empty) arrays? (Does my being on windows affect this > at all? There seem to be more recent gems for non-windows platforms.) > > Thanks for the help! I'll keep reading in search of the answer. >

Re: [Rails] Rails 3 beta: "bundle install" not installing to the GEM_HOME

2010-02-07 Thread Mat Brown
You're a software engineer using OS X? Odd. On Feb 7, 2010 11:29 PM, "Gavin" wrote: I've tried everything I can think of, but "bundle install" is still installing all new gems into /User/.gems. My GEM_HOME is /usr/local/ lib/ruby/gems/. Is this a bug? -- You received this message because you

[Rails] Re: reCAPTCHA headache

2010-02-07 Thread Sean Six
It must be something related to your installation of the plugin. It is hard to say with the available information you provided what is going on. Have you properly installed the keys? Here is an application that uses recaptcha. You can use it as a reference I suppose. http://www.opensourcera

Re: [Rails] Should I be using observers for an enquiry?

2010-02-07 Thread Mikel Lindsaar
On Mon, Feb 8, 2010 at 3:23 PM, ct9a wrote: >  I recently used observers in other parts of my application and really > like how neat it is (ie. controllers don't have to be carrying extra > notification logic). > >  Now, I have another functionality for which users of the site can > fill in a form

[Rails] Re: Rails 3 beta: "bundle install" not installing to the GEM_HOME

2010-02-07 Thread Erol Fornoles
On Feb 8, 12:29 pm, Gavin wrote: > I've tried everything I can think of, but "bundle install" is still > installing all new gems into /User/.gems.  My GEM_HOME is /usr/local/ > lib/ruby/gems/.  Is this a bug? Have you tried "sudo bundle install"? -- You received this message because you are sub

[Rails] Re: reCAPTCHA headache

2010-02-07 Thread Eric J. Gruber
That doesn't look bad, but I'd love to find something that doesn't use RMagick. On Feb 7, 10:26 pm, Sean Six wrote: > You may want to try this one as an alternative: > > http://expressica.com/simple_captcha/ > -- > Posted viahttp://www.ruby-forum.com/. -- You received this message because you a

[Rails] Rails 3 beta: "bundle install" not installing to the GEM_HOME

2010-02-07 Thread Gavin
I've tried everything I can think of, but "bundle install" is still installing all new gems into /User/.gems. My GEM_HOME is /usr/local/ lib/ruby/gems/. Is this a bug? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this grou

[Rails] Re: reCAPTCHA headache

2010-02-07 Thread Eric J Gruber
Hi Sean, thanks for writing. The only error I get is that the words typed were incorrect and that I need to try again. But the words are correct; it's not accepting the words that are typed. Eric On Feb 7, 10:08 pm, Sean Six wrote: > Is it throwing some kind of rails error or is the reCAPTCHA n

[Rails] Re: reCAPTCHA headache

2010-02-07 Thread Sean Six
You may want to try this one as an alternative: http://expressica.com/simple_captcha/ -- 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 rubyonrails-t...@google

[Rails] Should I be using observers for an enquiry?

2010-02-07 Thread ct9a
hi there, I recently used observers in other parts of my application and really like how neat it is (ie. controllers don't have to be carrying extra notification logic). Now, I have another functionality for which users of the site can fill in a form for enquiries. Yes, I do have an "enquiries"

[Rails] Re: reCAPTCHA headache

2010-02-07 Thread Sean Six
Is it throwing some kind of rails error or is the reCAPTCHA not accepting a correct answer? -- 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 rubyonrails-t...@

[Rails] Polymorphic association question

2010-02-07 Thread Sean Six
This is an example from the geokit plugin which I am trying to reproduce. class Location < ActiveRecord::Base belongs_to :locatable, :polymorphic => true acts_as_mappable end class Company < ActiveRecord::Base has_one :location, :as => :locatable # also works for belongs_to associations

[Rails] Re: What happened to CoC?

2010-02-07 Thread Marnen Laibow-Koser
tuti plain wrote: > Hi everyone, > > First I want to begin by saying I am a total newbie when it comes to > Rails. I am reading Obie Fernandez's The Rails Way, but I have a > question about something he says. He says that if I have a controller > like this: > > class DemoController < Applicat

[Rails] Model using STI new function only working partially

2010-02-07 Thread Solly
Hi, I have an application using STI on a model named Publisher. Publisher uses STI via a column named "service". When I call -- p = Publisher.new(..., :service => "TwitterPublisher") -- the service does not get assigned, yet all other columns do. However, if I later call -- p[:service] = "Twitte

Re: [Rails] What happened to CoC?

2010-02-07 Thread Craig White
On Mon, 2010-02-08 at 02:31 +0100, tuti plain wrote: > Hi everyone, > > First I want to begin by saying I am a total newbie when it comes to > Rails. I am reading Obie Fernandez's The Rails Way, but I have a > question about something he says. He says that if I have a controller > like this: >

Re: [Rails] Re: 500 Internal Error

2010-02-07 Thread Craig White
On Sun, 2010-02-07 at 17:22 -0800, nbsimsah wrote: > By the adventrous KETE installation on Ubuntu server, 500 error is > gone, but I'm missing still some crucial intallation steps (?) Upon > ruby script/server command the server generates the following error. > The development database is empty.

Re: [Rails] What happened to CoC?

2010-02-07 Thread David Chua
Hi Tuti, You can still use a empty controller method. You just have to name it ie. index.html.erb or index.erb :) Cheers, David On Mon, Feb 8, 2010 at 9:31 AM, tuti plain wrote: > Hi everyone, > > First I want to begin by saying I am a total newbie when it comes to > Rails. I am reading Obi

[Rails] What happened to CoC?

2010-02-07 Thread tuti plain
Hi everyone, First I want to begin by saying I am a total newbie when it comes to Rails. I am reading Obie Fernandez's The Rails Way, but I have a question about something he says. He says that if I have a controller like this: class DemoController < ApplicationController def index end en

[Rails] Re: 500 Internal Error

2010-02-07 Thread nbsimsah
By the adventrous KETE installation on Ubuntu server, 500 error is gone, but I'm missing still some crucial intallation steps (?) Upon ruby script/server command the server generates the following error. The development database is empty. I entered in to basket table just a dummy name. Thanks bei

[Rails] reCAPTCHA headache

2010-02-07 Thread Eric J Gruber
I'm trying to use this (http://ambethia.com/recaptcha/) reCAPTCHA plugin and have almost got it working. Help me get the last part? I can't seem to find anything in the logs that indicate an error. Here is my code. Everything is working good except that part where the code that's typed is actually

Re: [Rails] Re: dry collections in other models

2010-02-07 Thread Craig White
On Sun, 2010-02-07 at 15:11 -0800, Matt Jones wrote: > > On Feb 6, 6:57 am, Craig White wrote: > > Starting over, mail program sent prematurely... > > > > 2 models, Salons, Reviews > > > > In ApplicationHelper.rb... > > > > SALON_STATES = Salon.find(:all, :group => 'state', :select => 'state')

[Rails] Re: Same partial different results

2010-02-07 Thread brianp
So it turns out it's not just the partial. Any dropdown select i ad to that page will not properly display :prompt. Now I have an ajax update method so If i change the select all selects are reloaded. And as soon as I change one they all act accordingly with prompt displayed properly. So it seems

[Rails] Re: sequential steps in rails

2010-02-07 Thread Matt Jones
On Feb 7, 8:21 am, John Merlino wrote: > Sharagoz -- wrote: > > I looks like @step tells you what step the user is currently at, and > > that @direction tells you whether he pressed the "previous step" or > > "next step" button. > > So if that's the case, why would the params method be captured

[Rails] Re: dry collections in other models

2010-02-07 Thread Matt Jones
On Feb 6, 6:57 am, Craig White wrote: > Starting over, mail program sent prematurely... > > 2 models, Salons, Reviews > > In ApplicationHelper.rb... > >   SALON_STATES = Salon.find(:all, :group => 'state', :select => 'state') > Unrelated to your original question, but DON'T DO THIS. It works (f

[Rails] Multiple dependencies on Deletions

2010-02-07 Thread jeff aigner
I'm having an interesting issue in terms of dependencies. I have a truck record, which has_one employee. Then I have a master record, which has_many truck records. The problem is this: If there exists a master record, with a truck record, with an employee, and the employee is then deleted, the tr

Re: [Rails] Re: Optimizing ActiveSupport with native code

2010-02-07 Thread steve ross
On Feb 7, 2010, at 1:18 PM, Marnen Laibow-Koser wrote: > > Steve Ross wrote: >> On Feb 7, 2010, at 12:31 PM, Mat Brown wrote: >>> So I'm looking for feedback from the group on that idea. Some >>> But native implementations are probably only useful for methods that >>> people as possible involved.

[Rails] Re: Problem in rendering :partial with auto_complete_field

2010-02-07 Thread Filip Moens
Mc Ieong wrote: > Mc Ieong wrote: > > Anyone has success experience on rendering partial with auto_complete > insided ?? Are you using Ruby 1.9.1? I have the same problem when using 1.9.1 but not with 1.8.6 which works as it is supposed to. -- Posted via http://www.ruby-forum.com/. -- You rec

[Rails] Re: Optimizing ActiveSupport with native code

2010-02-07 Thread Marnen Laibow-Koser
Steve Ross wrote: > On Feb 7, 2010, at 12:31 PM, Mat Brown wrote: >> So I'm looking for feedback from the group on that idea. Some >> But native implementations are probably only useful for methods that >> people as possible involved. But for now, I'd appreciate any feedback >> Looking forward to t

Re: [Rails] Optimizing ActiveSupport with native code

2010-02-07 Thread Mat Brown
On Sun, Feb 7, 2010 at 15:54, steve ross wrote: > On Feb 7, 2010, at 12:31 PM, Mat Brown wrote: >> >> I've had this idea kicking around in my head for a while, and had some >> time yesterday to start playing around with it: ActiveSupport is >> heavily used in both the Rails library code and in the

Re: [Rails] Optimizing ActiveSupport with native code

2010-02-07 Thread steve ross
On Feb 7, 2010, at 12:31 PM, Mat Brown wrote: > > I've had this idea kicking around in my head for a while, and had some > time yesterday to start playing around with it: ActiveSupport is > heavily used in both the Rails library code and in the application > layer of a typical Rails stack. Certain

[Rails] Optimizing ActiveSupport with native code

2010-02-07 Thread Mat Brown
I've had this idea kicking around in my head for a while, and had some time yesterday to start playing around with it: ActiveSupport is heavily used in both the Rails library code and in the application layer of a typical Rails stack. Certain parts of AS would be much more efficiently implemented i

[Rails] using form_for in a partial

2010-02-07 Thread Adam Lauper
Hello, I would like a user to fill out a form (a long contract) and then email it to them, including the new values. So I was leaning towards a partial or layout so I didn't have to write the contract twice. But that's where I run into problems. The only difference between the form (contract) a

Re: [Rails] Re: named_scope and params

2010-02-07 Thread Craig White
On Sun, 2010-02-07 at 18:29 +0100, Paul Harrington wrote: > Craig White wrote: > > I almost suspect that I can't do this because it hasn't yet worked for > > me... > > > > My Salon model... > > > > this works... > > named_scope :states, > >:group => 'state', > >:select => 'state' > > >

[Rails] Re: Re: #

2010-02-07 Thread Ralph Shnelvar
Marnen Laibow-Koser wrote: > Rails always spews a stacktrace when it encounters an error. What did > the trace say? If it throws a trace on a # I cannot find it. The following is fairly typical ... Completed in 5814ms (View: 30, DB: 2) | 200 OK [http://localhost/signed_in/conne cted_to_emai

Re: [Rails] Re: Re: Help with 3.0 Beta

2010-02-07 Thread Fidel Viegas
On Sun, Feb 7, 2010 at 8:03 PM, Ken Foust wrote: > Jeffrey L. Taylor wrote: > > Quoting Ken Foust : > >> > > >> Hi Jeffrey > >> I did just as you did. It appears to work and the rails version says > >> 3.0.0beta there is just nothing in the rails gem directory. I will try > >> the links but I w

[Rails] Re: Re: Help with 3.0 Beta

2010-02-07 Thread Ken Foust
Jeffrey L. Taylor wrote: > Quoting Ken Foust : >> > >> Hi Jeffrey >> I did just as you did. It appears to work and the rails version says >> 3.0.0beta there is just nothing in the rails gem directory. I will try >> the links but I will keep doing my agile tutorial until it doesn't work. >> >

[Rails] Re: Re: #

2010-02-07 Thread Marnen Laibow-Koser
Ralph Shnelvar wrote: Well what *are* you shelling out? What is the full stacktrace Ruby is giving you? > > I don't understand the question. I guess I could set a debug breakpoint > and do a "where" ... but I'm pretty sure that's not what you mean. Rails always spews a stacktrace whe

[Rails] Re: How much "records" can development env stands?!

2010-02-07 Thread Marnen Laibow-Koser
Jeffrey L. Taylor wrote: > Quoting adedip : >> of minutes..yesterday I've kept loading..it reached the 56K >> articles..but now is stuck again... >> >> In testing this on a different machine that I use from remote.. any >> clue? >> >> (the solr server is perfectly reachable...) >> > I have a dev

[Rails] Re: RoR physical development environment advice

2010-02-07 Thread Marnen Laibow-Koser
john h wrote: > Thank you everyone. May i ask one last question? > > My first project is to use RoR to build a Google maps application > initially. I have a book on using RoR/Ajax with the google maps api, > and i have built a basic php/mysql website. Rather than going down > the route of study

Re: [Rails] How much "records" can development env stands?!

2010-02-07 Thread Jeffrey L. Taylor
Quoting adedip : > I didn't know how to title this question sorry :P > > I wrote this application using a MySQL DB and Solr Server (updated via > acts_as_solr plugin) > > I need to load tons of documents to test it out, the app is a > newspaper article collection repository that I upload via SGML

Re: [Rails] Re: Help with 3.0 Beta

2010-02-07 Thread Jeffrey L. Taylor
Quoting Ken Foust : > Jeffrey L. Taylor wrote: > > Quoting Ken Foust : > >> I am trying to install rails 3 beta > >> It says it is installed but when I look in the rails-3.0.0.beta > >> directory the only thing in there is .require_paths > >> > > > > I expect you did "gem install rails3b". This

[Rails] Re: Re: #

2010-02-07 Thread Ralph Shnelvar
>>> Well what *are* you shelling out? What is the full stacktrace Ruby is >>> giving you? I don't understand the question. I guess I could set a debug breakpoint and do a "where" ... but I'm pretty sure that's not what you mean. I'm shelling out to a C++ program that I have written. -- Posted

[Rails] Re: Re: #

2010-02-07 Thread Ralph Shnelvar
> Are you really doing backtick execution from within a Rails app? Do you > know that will completely block the app's execution in its current > process until it's done? That's undesirable at best. > Yeah, I'm doing a proof of concept thing. Blocking is not a particular issue at this time. P

[Rails] Re: RoR physical development environment advice

2010-02-07 Thread john h
Thank you everyone. May i ask one last question? My first project is to use RoR to build a Google maps application initially. I have a book on using RoR/Ajax with the google maps api, and i have built a basic php/mysql website. Rather than going down the route of studying RoR exclusively, since

Re: [Rails] Re: #

2010-02-07 Thread steve ross
On Feb 7, 2010, at 10:12 AM, Marnen Laibow-Koser wrote: > > Paul Harrington wrote: >> Ralph Shnelvar wrote: That's utterly bizarre. In what context are you getting this error? >>> >>> I, and many others, seem to randomly get this error. Right now I am >>> gettnig a lot of them as I `somep

[Rails] Re: #

2010-02-07 Thread Paul Harrington
Marnen Laibow-Koser wrote: > Paul Harrington wrote: >> Ralph Shnelvar wrote: That's utterly bizarre. In what context are you getting this error? >>> >>> I, and many others, seem to randomly get this error. Right now I am >>> gettnig a lot of them as I `someprogram.exe` (backtick execution

[Rails] Re: #

2010-02-07 Thread Marnen Laibow-Koser
Paul Harrington wrote: > Ralph Shnelvar wrote: >>> That's utterly bizarre. In what context are you getting this error? >> >> I, and many others, seem to randomly get this error. Right now I am >> gettnig a lot of them as I `someprogram.exe` (backtick execution) >> >> Hmm .. does backtick run

[Rails] Re: #

2010-02-07 Thread Paul Harrington
Ralph Shnelvar wrote: >> That's utterly bizarre. In what context are you getting this error? > > I, and many others, seem to randomly get this error. Right now I am > gettnig a lot of them as I `someprogram.exe` (backtick execution) > > Hmm .. does backtick run programs in the same address sp

[Rails] Re: #

2010-02-07 Thread Ralph Shnelvar
> That's utterly bizarre. In what context are you getting this error? I, and many others, seem to randomly get this error. Right now I am gettnig a lot of them as I `someprogram.exe` (backtick execution) Hmm .. does backtick run programs in the same address space as the ruby interpreter? I'

[Rails] Re: Help with 3.0 Beta

2010-02-07 Thread Ken Foust
Jeffrey L. Taylor wrote: > Quoting Ken Foust : >> I am trying to install rails 3 beta >> It says it is installed but when I look in the rails-3.0.0.beta >> directory the only thing in there is .require_paths >> > > I expect you did "gem install rails3b". This didn't work for me. What > did >

[Rails] Re: observe_field example of two related selects

2010-02-07 Thread Marnen Laibow-Koser
InventoryTrackers wrote: > I've done the 'Googling' for days now to find an example of using two > dependent select statements on a form where the user selects the > parent record value and the observe_field 'kicks in' to create another > select that shows parent.children offerings. > Is there anyo

[Rails] Re: named_scope and params

2010-02-07 Thread Paul Harrington
Craig White wrote: > I almost suspect that I can't do this because it hasn't yet worked for > me... > > My Salon model... > > this works... > named_scope :states, >:group => 'state', >:select => 'state' > > doesn't seem to work (at least not in script/console) > named_scope :salon_ci

Re: [Rails] observe_field example of two related selects

2010-02-07 Thread bill walton
Hi David, On Sat, 2010-02-06 at 11:29 -0800, InventoryTrackers wrote: > I've done the 'Googling' for days now to find an example of using two > dependent select statements on a form where the user selects the > parent record value and the observe_field 'kicks in' to create another > select that sh

[Rails] named_scope and params

2010-02-07 Thread Craig White
I almost suspect that I can't do this because it hasn't yet worked for me... My Salon model... this works... named_scope :states, :group => 'state', :select => 'state' doesn't seem to work (at least not in script/console) named_scope :salon_cities_by_state, :conditions => {:state

[Rails] Re: RoR physical development environment advice

2010-02-07 Thread Marnen Laibow-Koser
john h wrote: > Hi Marnen. Thank you for your response. The idea for the second > monitor was to maybe have a separate full-size window open, like one > for the tutorial, and one with the command line, editor, browser. > Dunno, just a thought. That may be quite useful. Connecting multiple monit

[Rails] Re: MySQL Installation Issues

2010-02-07 Thread Henrique Gontijo
I got it working following these steps: 1. Install mysql-devel "yum install mysql-devel" as root 2. Find the location of mysql_config "locate mysql_config" and fix that full path to "--with-mysql-config=" option 3. Success! Best regards. -- Posted via http://www.ruby-forum.com/. -- You receive

Re: [Rails] dry collections in other models

2010-02-07 Thread Craig White
On Sun, 2010-02-07 at 14:12 +0100, Franz Strebel wrote: > Hi Craig, > > I had to do something similar to this in one of my apps. Ryan Bates > did an excellent tutorial you may want to consider. > > http://railscasts.com/episodes/88-dynamic-select-menus > I may ultimately go down that road

[Rails] Re: RoR physical development environment advice

2010-02-07 Thread john h
Hi Rick. Yes, the Lynda.com tutorial is using version 1.x. Thanks for the tune-up, i'll look for a different set of tutorials i suppose!! John On Feb 7, 6:18 am, Rick DeNatale wrote: > On Sat, Feb 6, 2010 at 11:17 PM, john h wrote: > > Hi Folks, > > > I'm a RoR noob (and pretty much a progrmm

[Rails] Re: RoR physical development environment advice

2010-02-07 Thread john h
Hi Marnen. Thank you for your response. The idea for the second monitor was to maybe have a separate full-size window open, like one for the tutorial, and one with the command line, editor, browser. Dunno, just a thought. On Feb 7, 1:11 am, Marnen Laibow-Koser wrote: > john h wrote: > > Hi Folk

[Rails] Re: #

2010-02-07 Thread Marnen Laibow-Koser
Ralph Shnelvar wrote: > Clearly, Rails is detecting some kind of internal confusion. > - - - - > > Someone wrote: > The error means that you're trying to serve an object that's been > garbage collected, which usually happens because the object went out of > scope on the server. > > Your safest

[Rails] Re: #

2010-02-07 Thread Ralph Shnelvar
Clearly, Rails is detecting some kind of internal confusion. - - - - Someone wrote: The error means that you're trying to serve an object that's been garbage collected, which usually happens because the object went out of scope on the server. Your safest bet is figuring out why the object was p

[Rails] Re: #

2010-02-07 Thread Marnen Laibow-Koser
Ralph Shnelvar wrote: > I did a Google search on this and found a lot of stuff I don't > understand. And what did it say? > > Is this a serious error? How would one go tracking down the cause? Understand the stuff you found on Google? Provide context? Use your tests and the debugger to isol

[Rails] Re: Where to put large application controller code

2010-02-07 Thread Marnen Laibow-Koser
Martin Berli wrote: [...] > > Are you suggesting to put "everything" into a model, even if it's not > related to a database object? So to also put classes into the the > app/models directory, which are not of type ActiveRecord::Base ? Often, yes. Models are not only for database objects. Read

[Rails] Re: Where to put large application controller code

2010-02-07 Thread Martin Berli
Sharagoz -- wrote: > Code that doesn't fit neatly into a model, view or controller, or that > is shared across multiple models, views or controllers, should be > extracted into a module most of the time, and included where it needs to > be. Thanks, that's really what I needed. To put all the c

[Rails] Re: Where to put large application controller code

2010-02-07 Thread Sharagoz --
Code that doesn't fit neatly into a model, view or controller, or that is shared across multiple models, views or controllers, should be extracted into a module most of the time, and included where it needs to be. So if you have some controller code like the CSV processing that you mentioned, i

[Rails] Tip to compile a 32bit version of Ruby on Snow Leopard

2010-02-07 Thread PierreW
Hi guys, I hope it's not too off topic on a Rails forum, but I spent so much time on this I thought I should share it here - hopefully it will help other people. I had to compile a 32bit (i386) version of Ruby 1.8.7 on Snow Leopard (my app is using a 32bit only lib). So I configured the compilati

[Rails] Re: rails 3 script/server problem

2010-02-07 Thread Sunny
Sorry it was a typo. I actually meant "rails server" On Feb 7, 8:04 pm, a wrote: > I created a rails 3 app called "app1". > Changed directory to app1/ > Executed the command "rail server", but it is failing: "-bash: rail: > command not found" > Tried "rails server" instead, but this is creating a

[Rails] #

2010-02-07 Thread Ralph Shnelvar
I did a Google search on this and found a lot of stuff I don't understand. Is this a serious error? How would one go tracking down the cause? -- 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

Re: [Rails] RoR physical development environment advice

2010-02-07 Thread Rick DeNatale
On Sat, Feb 6, 2010 at 11:17 PM, john h wrote: > Hi Folks, > > I'm a RoR noob (and pretty much a progrmming noob) who has been > working since 7am to get a development platform set up on win 7 so > that I can follow the lynda.com "ruby on rails essential training" > tutorials.  It has been a prett

[Rails] [ANN] Rails 3.0 Beta ALL PLEASE READ

2010-02-07 Thread Conrad Taylor
Hi ALL, for all the early adopters of Rails 3.0 Beta, I'm sure that means most if not all of you. Anyway, I would highly recommend reading and following the below steps: 1. Release Notes http://guides.rails.info/3_0_release_notes.html Note: This has information about the Rails 3.0 B

[Rails] Re: Where to put large application controller code

2010-02-07 Thread Martin Berli
Sharagoz -- wrote: > If your controllers are getting fat it might be an indication that you > are putting a lot of the logic in the wrong place and not using the MVC > architecture the way its ment to be used. "Skinny controller, fat model" > is the practice most try to follow. The "calculation

[Rails] Re: sequential steps in rails

2010-02-07 Thread John Merlino
Sharagoz -- wrote: > I looks like @step tells you what step the user is currently at, and > that @direction tells you whether he pressed the "previous step" or > "next step" button. So if that's the case, why would the params method be captured here for both :step and :direction. Thanks for the

Re: [Rails] Re: rails 3 script/server problem

2010-02-07 Thread Rimantas Liubertas
> Tried "rails server" instead, but this is creating a new app called > "server" Are you sure you tried "rails server" in the your app dir? Regards, Rimantas -- http://rimantas.com/ -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To po

[Rails] Rails 3: bundle install vendor - ffi 0.5.4 gem crashes : ERROR: Failed to build gem native extension

2010-02-07 Thread Kristian
Installing ffi (0.5.4) from rubygems repository at http://gemcutter.org with native extensions /usr/local/Cellar/ruby/1.9.1-p378/lib/ruby/ site_ruby/1.9.1/rubygems/installer.rb:504:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuild

Re: [Rails] dry collections in other models

2010-02-07 Thread Franz Strebel
Hi Craig, I had to do something similar to this in one of my apps. Ryan Bates did an excellent tutorial you may want to consider. http://railscasts.com/episodes/88-dynamic-select-menus Have fun, Franz -- You received this message because you are subscribed to the Google Groups "Ruby on Rails

[Rails] Re: rails 3 script/server problem

2010-02-07 Thread a
I created a rails 3 app called "app1". Changed directory to app1/ Executed the command "rail server", but it is failing: "-bash: rail: command not found" Tried "rails server" instead, but this is creating a new app called "server" On Feb 7, 1:55 pm, Sunny wrote: > In Rails 3 you don't start the

[Rails] Re: rails 3 script/server problem

2010-02-07 Thread Sunny
In Rails 3 you don't start the server by "script/server" anymore. You use "rail server" instead. Check out http://guides.rails.info/3_0_release_notes.html On Feb 7, 7:03 pm, a wrote: > I installed Rails 3 beta, created a new rails 3 app, and tried to run > it but am getting this error when runnin

[Rails] Re: Where to put large application controller code

2010-02-07 Thread Sharagoz --
If your controllers are getting fat it might be an indication that you are putting a lot of the logic in the wrong place and not using the MVC architecture the way its ment to be used. "Skinny controller, fat model" is the practice most try to follow. The "calculation detail" usually belongs in

[Rails] Re: RoR physical development environment advice

2010-02-07 Thread Sharagoz --
I have RoR on win7, and I cant remember any issues installing it. Download and install Ruby, download and install RubyGems, run "gem install rails" from the command line, and its done. You'll probably want a database too, like mysql. Download and install mysql. Im still on version 5.0, last I che

[Rails] Re: sequential steps in rails

2010-02-07 Thread Sharagoz --
I looks like @step tells you what step the user is currently at, and that @direction tells you whether he pressed the "previous step" or "next step" button. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: T

[Rails] rails 3 script/server problem

2010-02-07 Thread a
I installed Rails 3 beta, created a new rails 3 app, and tried to run it but am getting this error when running script/server: Cannot find gem for Rails =1.2.6.0 Do I need to install an earlier version of rails to have a running rails 3 app? Thanks -- You received this message because you are s

[Rails] Where to put large application controller code

2010-02-07 Thread Martin Berli
Hello, A common experience: You start to develop a new rails application. When controller method code is growing, you will put parts of its code under the private section at the end of the controller, because you want the public methods to reflect the processing logic, not the calculation detail.

[Rails] Authlogic Oauth problem with Remember Me

2010-02-07 Thread acreadinglist
My sole login type is Twitter OAuth; I'm using Authlogic with the Oauth addition for authentication. I'm trying to build my Rails app such that the user is automatically redirected to Twitter's login/registration, instead of having a "login with Twitter" button on my page. That works so far, using

Re: [Rails] Re: "Getting Started" needs Rails 3.0, but "gem install rails" installs Rails 2.3.8

2010-02-07 Thread Conrad Taylor
On Mon, Feb 1, 2010 at 10:12 AM, Simone R. wrote: > Frederick Cheung wrote: > > >> - The Guide should explain how to download Rails 3.0 (iff it is > >> stable) > > > I used this link > http://oscardelben.com/articles/2009/12/06/how-to-test-rails-3.html > for getting a Rails3 running enviroment. >

Re: [Rails] Re: "Getting Started" needs Rails 3.0, but "gem install rails" installs Rails 2.3.8

2010-02-07 Thread Conrad Taylor
On Mon, Feb 1, 2010 at 9:06 PM, Ankit Varshney wrote: > Can anybody tell me the new features in Rails 3.0 > > Thanks & Regards > Ankit Varshney > +91-9899314144 > > > Hi, please start by reading the Rails 3 beta release notes: http://guides.rails.info/3_0_release_notes.html Good luck, -Conrad

[Rails] [Rails 3] How do I use the new hook functionality to hook up multiple generators for scaffolding etc.

2010-02-07 Thread Kristian
I have ported a few Rails 2 generators in the past week and have learned a lot doing it, but I still don't understand how to take advantage of the new 'hook' functionality, which should make it easy to hook up multiple generators and have one generator calling multiple other generators. Anyone has

[Rails] How much "records" can development env stands?!

2010-02-07 Thread adedip
I didn't know how to title this question sorry :P I wrote this application using a MySQL DB and Solr Server (updated via acts_as_solr plugin) I need to load tons of documents to test it out, the app is a newspaper article collection repository that I upload via SGML corpus. Now the strange is..t

[Rails] Re: RoR physical development environment advice

2010-02-07 Thread Marnen Laibow-Koser
john h wrote: > Hi Folks, > > I'm a RoR noob (and pretty much a progrmming noob) who has been > working since 7am to get a development platform set up on win 7 so > that I can follow the lynda.com "ruby on rails essential training" > tutorials. It has been a pretty cruel process, and still incomp

[Rails] RoR physical development environment advice

2010-02-07 Thread john h
Hi Folks, I'm a RoR noob (and pretty much a progrmming noob) who has been working since 7am to get a development platform set up on win 7 so that I can follow the lynda.com "ruby on rails essential training" tutorials. It has been a pretty cruel process, and still incomplete. I wish to pick your