[Rails] whyt should i use mongrel_cluster ?

2011-04-18 Thread amrit pal pathak
why should i use mongrel_cluster in my rails application? What are its benefits for which i should install and configure it ? is webrick server not enough for rails application? Thanks -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To

[Rails] whyt should i use mongrel_cluster ?

2011-04-18 Thread amrit pal pathak
why should i use mongrel_cluster in my rails application? What are its benefits for which i should install and configure it ? is webrick server not enough for rails application? Thanks -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To

[Rails] Re: Rails 3 Migration expecting test gems to be installed??

2011-04-18 Thread Frederick Cheung
On Apr 15, 2:01 pm, johnnybutler7 wrote: > Hi, > > I have gem file set up so only the specific gems are installed/needed > for each environment, so all the test gems like cucumber etc are > grou[ed in test.  When i try a rake db:migrate RAILS_ENV=staging on > the staging server however i get an

[Rails] Unable to install Rails through proxy

2011-04-18 Thread rubynewbie
I am new to Rails and have been facing difficulty while installing rails. I have already installed Ruby and RubyGems on my machine by downloading the packages. But when I install Rails through RubyGems through a HTTP Proxy , I am thrown an error. Below is the details of the command and the exceptio

[Rails] How to change the url (from localhostL:3000) to (example.com)

2011-04-18 Thread amrit pal pathak
I am new to ruby on rails and running rails 2.3.5.My application is running at localhost:3000 ,but i want it should be run at "example.com" in brower when i start the serve normally as "script/ server" . What to do? Thanks -- You received this message because you are subscribed to the Google Gr

[Rails] how to update data

2011-04-18 Thread News Aanad
hi, I have json string in json request. i want to update the database using that string. how can i do that? There would be a multipal object in this string. sample string is: [{"product":{"amt":300,"created_at":"2011-03-28T05:46:52Z","id":1,"prodnm":"maruti","qty":1,"rate":12,"updated_at":"2011-0

[Rails] Re: Problem with new action 'validate'

2011-04-18 Thread Frederick Cheung
On Apr 17, 9:12 pm, "Jose tomas R." wrote: > I've created a new action in my invitations controller named > validate and validation > > controller/invitations_controller.rb > > def validate > end > > def validation >   @invitation = Invitation.find(params(:key)) > shouldn't that be params[:key]

Re: [Rails] How to generate a form in rails 2.3.5

2011-04-18 Thread Chris Kottom
Have you read http://guides.rubyonrails.org/v2.3.8/form_helpers.html? On Mon, Apr 18, 2011 at 11:55 AM, amrit pal pathak < amritpalpath...@gmail.com> wrote: > I am new to ROR and running 2.3.5.I want a simple form with some text > boxes,password field,check box etc. > How to generate a form in RO

[Rails] How to generate a form in rails 2.3.5

2011-04-18 Thread amrit pal pathak
I am new to ROR and running 2.3.5.I want a simple form with some text boxes,password field,check box etc. How to generate a form in ROR? 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 rubyonra

[Rails] How to generate a form in rails 2.3.5

2011-04-18 Thread amrit pal pathak
I am new to ROR and running 2.3.5.I want a simple form with some text boxes,password field,check box etc. How to generate a form in ROR? 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 rubyonra

[Rails] How to change the url (from localhostL:3000) to (example.com)

2011-04-18 Thread amrit pal pathak
I am new to ruby on rails and running rails 2.3.5.My application is running at localhost:3000 ,but i want it should be run at "example.com" in brower when i start the serve normally as "script/ server" . What to do? Thanks -- You received this message because you are subscribed to the Google Gr

[Rails] How to change the url (from localhostL:3000) to (example.com)

2011-04-18 Thread amrit pal pathak
I am new to ruby on rails and running rails 2.3.5.My application is running at localhost:3000 ,but i want it should be run at "example.com" in brower when i start the serve normally as "script/ server" . What to do? Thanks -- You received this message because you are subscribed to the Google Gr

[Rails] how to handle session with external input?

2011-04-18 Thread frankblizzard
Hi, I hope I chose the right title for the question. I am doing a time tracking app for our intranet. Because the people tend to forget to save their hours, we made a small desktop app with adobe air that pops up where you can enter your hours, the hours should be posted to the hours controller of

[Rails] Re: Rails 3 Migration expecting test gems to be installed??

2011-04-18 Thread Phoenix Rising
I wish I had a hard-and-fast answer for you Johnny, but one question that comes to mind: is the staging environment somehow "inheriting" settings from your test environment? On Apr 18, 2:49 am, johnnybutler7 wrote: > thanks, > > my gem file is: > > source 'http://rubygems.org' > > gem 'rails', '3

[Rails] Could use some opinions on indexes

2011-04-18 Thread Phoenix Rising
Hey guys, Finding a more experienced group of developers is a tough challenge, so I'm posting this here. It's slightly Rails-related, but mostly a database issue. So I'm using AuthLogic for an app I'm building. Should I be worried about putting indexes on fields like crypted_password, password_

[Rails] Re: what is mean of Deployment?

2011-04-18 Thread amrit pal pathak
On Apr 18, 3:56 am, Colin Law wrote: > On 18 April 2011 08:23, amrit pal pathak wrote: > > > > > > > > > > > > > On Apr 17, 9:02 pm, Peter De Berdt wrote: > >> On 17 Apr 2011, at 17:04, amrit pal pathak wrote: > > >> > On Apr 17, 7:27 am, Chris Kottom wrote: > >> >> Are you planning to contin

[Rails] Re: Rails 3 Migration expecting test gems to be installed??

2011-04-18 Thread johnnybutler7
thanks, my gem file is: source 'http://rubygems.org' gem 'rails', '3.0.3' gem 'omniauth' gem 'pg', :require => 'pg' gem 'devise' gem 'cancan' gem 'haml' gem 'hpricot' gem 'ruby_parser' gem 'rails_admin', :git => 'git://github.com/sferik/rails_admin.git' gem 'acts-as-taggable-on' gem 'jquery-rail

[Rails] query optimize

2011-04-18 Thread jey bal
I have following query for find out the total no of counts. *** SELECT count(*) FROM contacts_lists JOIN plain_contacts ON contacts_lists.contact_id = plain_contacts.contact_id JOIN contact

Re: [Rails] Re: what is mean of Deployment?

2011-04-18 Thread Colin Law
On 18 April 2011 08:23, amrit pal pathak wrote: > > > On Apr 17, 9:02 pm, Peter De Berdt wrote: >> On 17 Apr 2011, at 17:04, amrit pal pathak wrote: >> >> >> >> > On Apr 17, 7:27 am, Chris Kottom wrote: >> >> Are you planning to continue using sqlite in the production >> >> environment? >> >>  M

[Rails] Re: rubygems fail - require hpricot!

2011-04-18 Thread Frederick Cheung
On Apr 18, 7:12 am, "Anush J." wrote: > Hi guys, > I wanted to fetch some info from webpage and use it in my db. I read > hpricot is one way to do it. But the problem is I'm unable to use it > with my app. For some reason after successfully installing hpricot it > fails when I try to use it in t

[Rails] unable to set default_url_options on per environment basis

2011-04-18 Thread charles d
Im trying to set the default_url_options on a per environment basis but nothing is working. I keep getting "Missing host to link to! Please provide :host parameter or set default_url_options[:host]" post.rb def share_all url = Rails.application.routes.url_helpers.post_url(self) if user.authe

[Rails] Re: what is mean of Deployment?

2011-04-18 Thread amrit pal pathak
On Apr 17, 9:02 pm, Peter De Berdt wrote: > On 17 Apr 2011, at 17:04, amrit pal pathak wrote: > > > > > On Apr 17, 7:27 am, Chris Kottom wrote: > >> Are you planning to continue using sqlite in the production   > >> environment? > >>  Most people don't, but it's not a problem to do so. > > >> I

[Rails] Re: what is mean of Deployment?

2011-04-18 Thread amrit pal pathak
On Apr 18, 11:48 am, Mohamed Aslam wrote: > All most all developers develop application in their local computer. > This is called as development environment. Once your development > completed, you need to move the application to a production server > where other people can use your website. Movi

<    1   2