Re: [Rails] No route matches "/home/index" with {:method=>:get}

2011-04-16 Thread Jatin kumar
On Sun, Apr 17, 2011 at 6:46 AM, amrit pal pathak wrote: > I followed a tutorial to learn ruby on rails at > http://guides.rubyonrails.org/v2.3.8/getting_started.html > After creating a view and controller as "script/generate controller > home index" and then i changed the contents of app/view/h

[Rails] Re: My goodness why does RoR has to be so beginer unfrendly ?

2011-04-16 Thread hoboy Hoboy
Thanks for all the good advices. Yes I have great respect for people who really remember the API of the language they use. About the what Bryan Crossland said hi is right, but I have learned few languages before. -- Posted via http://www.ruby-forum.com/. -- You received this message because y

[Rails] Re: what is mean of Deployment?

2011-04-16 Thread amrit pal pathak
On Apr 17, 2:08 am, amrit pal pathak wrote: > On Apr 16, 11:40 am, Colin Law wrote:> On 16 April > 2011 16:32, amritpal pathak wrote: > > > > what is meaning of deploy a ruby on rails application?i am new to RoR. > > > please somebody explain it > > > Deployment is the process of putting the

[Rails] No route matches "/home/index" with {:method=>:get}

2011-04-16 Thread amritpal pathak
I followed a tutorial to learn ruby on rails at http://guides.rubyonrails.org/v2.3.8/getting_started.html After creating a view and controller as "script/generate controller home index" and then i changed the contents of app/view/home/inde

[Rails] No route matches "/home/index" with {:method=>:get}

2011-04-16 Thread amrit pal pathak
I followed a tutorial to learn ruby on rails at http://guides.rubyonrails.org/v2.3.8/getting_started.html After creating a view and controller as "script/generate controller home index" and then i changed the contents of app/view/home/ index.html.erb file according to tutorial into one line as

[Rails] No route matches "/home/index" with {:method=>:get}

2011-04-16 Thread amrit pal pathak
I followed a tutorial to learn ruby on rails at http://guides.rubyonrails.org/v2.3.8/getting_started.html After creating a view and controller as "script/generate controller home index" and then i changed the contents of app/view/home/ index.html.erb file according to tutorial into one line as

[Rails] Re: what is mean of Deployment?

2011-04-16 Thread amrit pal pathak
On Apr 16, 11:40 am, Colin Law wrote: > On 16 April 2011 16:32, amritpal pathak wrote: > > > what is meaning of deploy a ruby on rails application?i am new to RoR. > > please somebody explain it > > Deployment is the process of putting the application on a production > server for use by real us

[Rails] calling methods from one object in another?

2011-04-16 Thread Nathan Domier
I realize the title probably doesn't make much sense, but that was the best short description I could come up with. Anyway, I have users and pages in my site, and was using the following code in the users controller, which works fine: def show @user = User.find(params[:id]) @title = @u

Re: [Rails] routes question rails 3.0 vs. rails 2.0

2011-04-16 Thread Phil Crissman
Phil On Sat, Apr 16, 2011 at 9:29 PM, sol.manager wrote: > I have been trying to get Solr up and running and have an app mostly > working but simple routes stuff is tripping me up. This is a Rails 3.0 > route. > > PlayingWithSunspot::Application.routes.draw do > resources :jobs do > collectio

[Rails] routes question rails 3.0 vs. rails 2.0

2011-04-16 Thread sol.manager
I have been trying to get Solr up and running and have an app mostly working but simple routes stuff is tripping me up. This is a Rails 3.0 route. PlayingWithSunspot::Application.routes.draw do resources :jobs do collection do get :search end end So, what would the Rails 2.3.11 equival

Re: [Rails] My goodness why does RoR has to be so beginer unfrendly ?

2011-04-16 Thread caiof...@gmail.com
You may use Eclipse or Aptana RadRails to get a environment integrated. But keep in mind that rails is made to provide a framework on what you really need is a code editor, not an "complete" IDE. The code editor that I use is Redcar, and I recommend it to you. On Apr 16, 2011 4:21 PM, "Jason Whit

[Rails] Re: Debugger breakpoint ignored in Rails 3 test

2011-04-16 Thread Fernando Perez
> Do you have > > group :development, :test do > gem 'ruby-debug' > end > > in your Gemfile? Sorta' I actually have: group :development, :test do gem 'ruby-debug19' end -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups

[Rails] Re: rails 3 time breakdowns don't add up

2011-04-16 Thread Josh
production isn't bad at all: Completed 200 OK in 24ms (Views: 19.5ms | ActiveRecord: 2.2ms | Sphinx: 0.0ms) However, it's highly annoying to wait for 1 second requests in development - rails 2.x wasn't like this. -- You received this message because you are subscribed to the Google Groups "Ruby

[Rails] Re: rails 3 time breakdowns don't add up

2011-04-16 Thread Josh
> What did you upgrade from? 2.3.11 > > Have you upgraded the ruby version also? ree, latest > > Are you running in production mode? no - this is in development > > What OS are you running under? OSX for dev > > Colin -- You received this message because you are subscribed to the Google Groups "

Re: [Rails] rails 3 time breakdowns don't add up

2011-04-16 Thread Colin Law
On 16 April 2011 20:18, Josh wrote: > Ever since upgrading an app to rails 3.0.5 the time breakdowns at the > bottom of each action don't come close to adding up.  Further, the app > feels significantly slower. > > Completed 200 OK in 1684ms (Views: 165.1ms | ActiveRecord: 6.6ms | > Sphinx: 0.0ms)

Re: [Rails] My goodness why does RoR has to be so beginer unfrendly ?

2011-04-16 Thread Jason White
All of the others comments have been spot-on. I come from a .net background, and can understand your search for an IDE. I have tried most of the ones currently available, but enjoy rubymine the most. Yes it's going to cost you, but it's worth the money. On the other hand, I'm on the fence if it

[Rails] rails 3 time breakdowns don't add up

2011-04-16 Thread Josh
Ever since upgrading an app to rails 3.0.5 the time breakdowns at the bottom of each action don't come close to adding up. Further, the app feels significantly slower. Completed 200 OK in 1684ms (Views: 165.1ms | ActiveRecord: 6.6ms | Sphinx: 0.0ms) 165 + 6 + 0 isn't anywhere close to 1684. All

[Rails] Re: ActionMailer - Setting Header Values - Version Issues

2011-04-16 Thread doug
Perfecto! Thanks so much. ... doug -- 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 rubyonrails-talk+unsubscr...

[Rails] Re: OS X - `require': no such file to load -- sqlite3/sqlite3_native

2011-04-16 Thread Ross Rankin
Yeah both are x86-64 so looks fine... -- 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-talk@googlegroups.com. To unsubscribe from this group, send

[Rails] Generating forms for array & add elements dynamically

2011-04-16 Thread Karel Vanhoorebeek
Hi, I've been struggling with this for quite some time now, but I feel like I'm almost there. What I have is a model "online_score" which has an array of "online_score_url"s. Those urls have 2 attributes: "url" and "description". I have to create a form that enables you to edit the contents of that

Re: [Rails] what is mean of Deployment?

2011-04-16 Thread Colin Law
On 16 April 2011 16:32, amritpal pathak wrote: > what is meaning of deploy a ruby on rails application?i am new to RoR. > please somebody explain it Deployment is the process of putting the application on a production server for use by real users. Colin -- You received this message because you

[Rails] what is mean of Deployment?

2011-04-16 Thread amritpal pathak
what is meaning of deploy a ruby on rails application?i am new to RoR. please somebody explain it Thanks -- 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 unsubscri

Re: [Rails] Re: AssociationTypeMismatch ( expected, got )

2011-04-16 Thread Bryan Crossland
On Sat, Apr 16, 2011 at 3:05 AM, Fearless Fool wrote: > Hi Bryan: > > Bryan Crossland wrote in post #993150: > >> PremiseWeatherStation.create(:premise => self, :weather_station => > >> station) > > I've been unable to reproduce your error in the rails server or in the > > console. However, what

[Rails] Re: Rails 3 Crashing On Windows 7

2011-04-16 Thread cipher_neo
sure: C:\Windows\System32>gem list *** LOCAL GEMS *** abstract (1.0.0) actionmailer (3.0.5) actionpack (3.0.5) activemodel (3.0.5) activerecord (3.0.5) activeresource (3.0.5) activesupport (3.0.5, 2.3.11) annotate-models (1.0.4) archive-tar-minitar (0.5.2) arel (2.0.9) builder (2.1.2) bundler (1

[Rails] Re: Rails 3 Crashing On Windows 7

2011-04-16 Thread Luis Lavena
On Apr 16, 11:58 am, cipher_neo wrote: > Hi guys, > > I have Rails 3 running on Windows 7 with Ruby 1.9.2 > > Every now and again, my server crashes, and I see the following > information in the windows event log: > > Faulting application name: ruby.exe, version: 1.9.2.180, time stamp: > 0x4d5ee5e

[Rails] Rails 3 Crashing On Windows 7

2011-04-16 Thread cipher_neo
Hi guys, I have Rails 3 running on Windows 7 with Ruby 1.9.2 Every now and again, my server crashes, and I see the following information in the windows event log: Faulting application name: ruby.exe, version: 1.9.2.180, time stamp: 0x4d5ee5ed Faulting module name: msvcrt-ruby191.dll, version: 1.

[Rails] Best way of doing this structure (legacy db), STI? Polymorphism?

2011-04-16 Thread Andrew
I'm working with a legacy Oracle DB (read-only access) and am wondering if I'm going down the correct path with using STI. Basically, there is one huge table (167+ fields) which contain configuration information for about 8 different things. Some fields are applicable to only certain types of thin

Re: [Rails] My goodness why does RoR has to be so beginer unfrendly ?

2011-04-16 Thread Bryan Crossland
Sent from my iPhone On Apr 16, 2011, at 5:16 AM, hoboy Hoboy wrote: > I have create a RoR project using "rails new" on ubuntu. > Now I am looking for any ide to start coding, but I haven't found the > way to bring the project into any ide, I have tried with Netbeans 6.9.1 > it can not see that i

[Rails] Re: Plugin or Gem reuirement, if gem is not installed

2011-04-16 Thread Matt Jones
On Apr 15, 10:28 am, Vitaliy Yanchuk wrote: > It is about rails2 > > I have a gem that I install as a plugin, I want in development > environment use it from vendor/plugins folder and if it is installed in > system to use the systems gem > > But if I use config.gem in environment.rb it raises an

[Rails] Re: My goodness why does RoR has to be so beginer unfrendly ?

2011-04-16 Thread hoboy Hoboy
RubyMine is the best but it cost money As i am not professional rails developer I didn't want to use money on ide. If there is a free version can you point me to that ? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby

[Rails] Re: My goodness why does RoR has to be so beginer unfrendly ?

2011-04-16 Thread hoboy Hoboy
Tiobe list nice place for ruby http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html -- 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-

[Rails] Re: My goodness why does RoR has to be so beginer unfrendly ?

2011-04-16 Thread hoboy Hoboy
I hope I will see the light, but for the time being this has been one very frustrating. RoR is easy to generate the project from console, but difficult to deal with it later. I am looking at Gedit now, Geany, Gedit, i will also look for RoR eclipse plugin... I just wanted to widen my horizon as

Re: [Rails] My goodness why does RoR has to be so beginer unfrendly ?

2011-04-16 Thread jmanpa
I use RubyMine with Rails 3 and like it. -- 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 rubyonrails-talk+unsubscr...@g

Re: [Rails] different date format in sqlite and mysql

2011-04-16 Thread Sebastian
On Sat, Apr 16, 2011 at 9:52 AM, Colin Law wrote: > On 16 April 2011 00:55, Sebastian wrote: >> On Fri, Apr 15, 2011 at 5:34 PM, Colin Law wrote: >>> On 15 April 2011 16:19, Colin Law wrote: >>> ... >>> Answering my own question, yes this appears to be a Ruby 1.9 >>> enhancement.  If you are us

Re: [Rails] How to Generate Scaffold for Existing Table with Rails 3?

2011-04-16 Thread David Kahn
On Fri, Apr 15, 2011 at 4:12 PM, Lee wrote: > I'm new to Rails and have been googling for days on this subject. > Seems there used to be some built-in support for creating scaffolds > for existing tables in earlier Rails versions, and several plugins/ > addons that did similar things, but as far

Re: [Rails] Re: My goodness why does RoR has to be so beginer unfrendly ?

2011-04-16 Thread David Kahn
On Sat, Apr 16, 2011 at 5:47 AM, David Kahn wrote: > > > On Sat, Apr 16, 2011 at 5:34 AM, hoboy Hoboy wrote: > >> David Kahn. >> Thanks what ide you use ? and how specically you import your project >> into that ide ? >> > > Actually I picked up vim a couple months ago and love it. Although if you

[Rails] adding HABTM association while creating a record

2011-04-16 Thread Sachin Joshi
Hello Experts, I have a HABTM association as followed: class Account < ActiveRecord::Base has_and_belongs_to_many :user end class User < ActiveRecord::Base has_and_belongs_to_many :type has_and_belongs_to_many :account end class Type < ActiveRecord::Base has_and_belongs

Re: [Rails] Re: My goodness why does RoR has to be so beginer unfrendly ?

2011-04-16 Thread David Kahn
On Sat, Apr 16, 2011 at 5:34 AM, hoboy Hoboy wrote: > David Kahn. > Thanks what ide you use ? and how specically you import your project > into that ide ? > Actually I picked up vim a couple months ago and love it. Although if you do not use it you might not want to do both your ror learning cur

Re: [Rails] My goodness why does RoR has to be so beginer unfrendly ?

2011-04-16 Thread Michael Pavling
On 16 April 2011 11:16, hoboy Hoboy wrote: > I have create a RoR project using "rails new" on ubuntu. What tutorial are you following to guide you through the beginner steps? > Now I am looking for any ide to start coding, but I haven't found the > way to bring the project into any ide, I have t

[Rails] Re: My goodness why does RoR has to be so beginer unfrendly ?

2011-04-16 Thread hoboy Hoboy
David Kahn. Thanks what ide you use ? and how specically you import your project into that ide ? I am on ubuntu. Well when I was leaning python it was easy to get round with. install it, starting it. I have many years of java/.Net programming as profational. -- Posted via http://www.ruby-forum.

Re: [Rails] My goodness why does RoR has to be so beginer unfrendly ?

2011-04-16 Thread David Kahn
On Sat, Apr 16, 2011 at 5:16 AM, hoboy Hoboy wrote: > I have create a RoR project using "rails new" on ubuntu. > Now I am looking for any ide to start coding, but I haven't found the > way to bring the project into any ide, I have tried with Netbeans 6.9.1 > it can not see that it is a ruby proje

[Rails] My goodness why does RoR has to be so beginer unfrendly ?

2011-04-16 Thread hoboy Hoboy
I have create a RoR project using "rails new" on ubuntu. Now I am looking for any ide to start coding, but I haven't found the way to bring the project into any ide, I have tried with Netbeans 6.9.1 it can not see that it is a ruby project, the same with aptana. What I am looking for is an ide wher

[Rails] [announcement] Google Maps + Rails 3 = gmaps4rails

2011-04-16 Thread apneadiving
Just FYI I created a gem to easily integrate google maps within Rails3: - geocode - display styled markers, polylines, polygons, destinations... There is much configuration to fit your needs. It was presented here: http://rubyshow.com/episodes/157 The source is here: https://github.com/apneadivi

Re: [Rails] DateTime + x.days, x.minutes and the like?

2011-04-16 Thread David Kahn
On Sat, Apr 16, 2011 at 1:01 AM, Bryan Crossland wrote: > On Fri, Apr 15, 2011 at 1:56 PM, David Kahn > wrote: > >> >> >> On Fri, Apr 15, 2011 at 1:50 PM, Michael Pavling wrote: >> >>> On 15 April 2011 19:41, David Kahn wrote: >>> > This cant be so hard but feeling rather annoyed with myself for

[Rails] Re: AssociationTypeMismatch ( expected, got )

2011-04-16 Thread Fearless Fool
Hi Bryan: Bryan Crossland wrote in post #993150: >> PremiseWeatherStation.create(:premise => self, :weather_station => >> station) > I've been unable to reproduce your error in the rails server or in the > console. However, what I do see is that "self" is a reserved word. The > variable name of th

Re: [Rails] different date format in sqlite and mysql

2011-04-16 Thread Colin Law
On 16 April 2011 00:55, Sebastian wrote: > On Fri, Apr 15, 2011 at 5:34 PM, Colin Law wrote: >> On 15 April 2011 16:19, Colin Law wrote: >> ... >> Answering my own question, yes this appears to be a Ruby 1.9 >> enhancement.  If you are using 1.9 then what happens if in the console >> you do >> r

Re: [Rails] AssociationTypeMismatch ( expected, got )

2011-04-16 Thread Bryan Crossland
On Fri, Apr 15, 2011 at 10:53 PM, Fearless Fool wrote: > Perhaps this is just > http://www.ruby-forum.com/topic/1505406 > coming back to bite me -- I suspect I'm missing a trivial declaration. > > Error message (note that NOAA is an STI subclass of WeatherStation) > > ActiveRecord::Associati