Re: [Rails] Re: sqlite 3 error

2011-06-27 Thread amritpal pathak
On Mon, Jun 27, 2011 at 4:16 AM, Kevin wrote: > Hi, > > first you need to install sqlite3. > In Ubuntu: sudo apt-get install libsqlite3-dev > > Second install the sqlite gem > gem install sqlite3-ruby > > see here for example > http://stackoverflow.com/questions/2305920/rails-3-can-not-find-sqlit

Re: [Rails] Re: sqlite 3 error

2011-06-27 Thread amritpal pathak
On Mon, Jun 27, 2011 at 4:33 AM, Chirag Singhal wrote: > Do, what it says... run 'bundle install' on your app. > Or manually install sqlite3 gem > I tried "bundle install" from app.I couldn't work too.error persists. thanks -- You received this message because you are subscribed to the

[Rails] sqlite 3 error

2011-06-27 Thread amritpal pathak
I have installed Ruby on Rails . rails -v=>3.0.7 gem -v=>1.3.6 ruby -v=>ruby 1.8.7 (2010-01-10 patchlevel 249) [i486-linux] when i tried to start the server by "rails s" or tried to do anything it gives the error Could not find gem 'sqlite3 (>= 0, runtime)' in any

Re: [Rails] Passenger problem

2011-06-26 Thread amritpal pathak
On Sun, Jun 26, 2011 at 5:07 AM, Teri Solow wrote: > On Jun 26, 2011, at 01:27 , amritpal pathak wrote: > > # LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger > # 3.0.7/ext/apache2/mod_passenger.so > # PassengerRoot /usr/lib/ruby/gems/1.8/gems/

Re: [Rails] Passenger problem

2011-06-26 Thread amritpal pathak
On Sun, Jun 26, 2011 at 4:19 AM, Teri Solow wrote: > On Jun 26, 2011, at 00:51 , amritpal pathak wrote: > > how can i disable passenger permantly? >> > i want to access "localhost" as it was normally before > > > In your apache con

Re: [Rails] Passenger problem

2011-06-26 Thread amritpal pathak
On Sun, Jun 26, 2011 at 3:45 AM, amritpal pathak wrote: > > > On Sun, Jun 26, 2011 at 3:30 AM, Teri Solow wrote: > >> On Jun 25, 2011, at 23:35 , amritpal pathak wrote: >> >> i configured the ruby on rails app with passenger long time ago so when >> now i bro

Re: [Rails] Passenger problem

2011-06-26 Thread amritpal pathak
On Sun, Jun 26, 2011 at 3:30 AM, Teri Solow wrote: > On Jun 25, 2011, at 23:35 , amritpal pathak wrote: > > i configured the ruby on rails app with passenger long time ago so when now > i browse to "locahost" it shows the app's content.But i want to access the > /

Re: [Rails] How to import the contacts from Gmail/yahoo etc ?

2011-06-26 Thread amritpal pathak
On Sun, Jun 26, 2011 at 3:17 AM, Martin Wawrusch wrote: > I think this is what you need > > http://rubygems.org/gems/contacts > > Thank you very much > amritpalpathakgne.wordpress.com > > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" gr

[Rails] How to import the contacts from Gmail/yahoo etc ?

2011-06-26 Thread amritpal pathak
I am newbie to ROR so haven't much experience. I want to create a app whiich will fetch /import the contacts from Gmail/yahoo etc. what i should do? Thanks in advance amritpalpathakgne.wordpress.co -- You received this message because you are subscribed to the Google Groups "Ruby on Rails:

Re: [Rails] PDFKit

2011-06-26 Thread amritpal pathak
On Sun, Jun 26, 2011 at 2:48 AM, Jatin kumar wrote: > PDFKit.new("Hello Brazil").to_pdf > > Sorry for interruption.I tried it to .I am using rails 3.0.7.I pasted above > code in action of a button so that click on it can generate pdf.but i didn't > work. > > Output is: > > > heloPDFKit.new("

[Rails] Passenger problem

2011-06-25 Thread amritpal pathak
i configured the ruby on rails app with passenger long time ago so when now i browse to "locahost" it shows the app's content.But i want to access the /var/www/drupal with "localhost/drupal".I am unable to access it.It gives the error and error seems to be genuine due to passenger. No route match

Re: [Rails] best references (tutorials & howtos) for an experienced Rails Developer to start building Facebook Apps with RoR?

2011-06-22 Thread amritpal pathak
On Wed, Jun 22, 2011 at 3:39 AM, Pravin Mishra < diatm.pravin.it.07...@gmail.com> wrote: > Hi everyone, > what are your best references (tutorials & howtos) for an experienced > Rails Developer to start building Facebook Apps with RoR? > Thank you for this post.Also curious to know about it. >

Re: [Rails] uninitialized constant ApplicationController

2011-06-21 Thread amritpal pathak
On Tue, Jun 21, 2011 at 12:35 PM, Colin Law wrote: > On 21 June 2011 17:22, amritpal pathak wrote: > > > > > > On Tue, Jun 21, 2011 at 12:18 PM, Colin Law > wrote: > >> > >> On 21 June 2011 17:06, amritpal pathak > wrote: > >> >

Re: [Rails] uninitialized constant ApplicationController

2011-06-21 Thread amritpal pathak
On Tue, Jun 21, 2011 at 12:18 PM, Colin Law wrote: > On 21 June 2011 17:06, amritpal pathak wrote: > > > > > > On Tue, Jun 21, 2011 at 9:59 AM, Colin Law > wrote: > >> > >> On 21 June 2011 14:44, Chirag Singhal wrote: > >> > Also, you may

Re: [Rails] uninitialized constant ApplicationController

2011-06-21 Thread amritpal pathak
On Tue, Jun 21, 2011 at 9:59 AM, Colin Law wrote: > On 21 June 2011 14:44, Chirag Singhal wrote: > > Also, you may want to read up more on routing. > > Here's a link to official guide, which does a great job of explaining how > > routing works in rails 3 > > http://guides.rubyonrails.org/routing

Re: [Rails] uninitialized constant ApplicationController

2011-06-21 Thread amritpal pathak
On Tue, Jun 21, 2011 at 9:44 AM, Chirag Singhal wrote: > Also, you may want to read up more on routing. > Here's a link to official guide, which does a great job of explaining how > routing works in rails 3 > http://guides.rubyonrails.org/routing.html > > > thats what i am following and i got thi

Re: [Rails] uninitialized constant ApplicationController

2011-06-21 Thread amritpal pathak
On Tue, Jun 21, 2011 at 9:42 AM, Chirag Singhal wrote: > Sorry, I sent you the rails 2.3 way of routing. > It should have been like this: > > namespace "admin" do > resources :posts do > collection do > post :click > end > end > Great!! working now.Thank you sir > > And

Re: [Rails] uninitialized constant ApplicationController

2011-06-21 Thread amritpal pathak
On Tue, Jun 21, 2011 at 9:21 AM, Colin Law wrote: > On 21 June 2011 14:16, amritpal pathak wrote: > > > > > > On Tue, Jun 21, 2011 at 9:09 AM, Chirag Singhal < > chirag.sing...@gmail.com> > > wrote: > >> > >> Can you past

Re: [Rails] uninitialized constant ApplicationController

2011-06-21 Thread amritpal pathak
On Tue, Jun 21, 2011 at 9:09 AM, Chirag Singhal wrote: > Can you paste the code from your routes file here? > > > Check::Application.routes.draw do > # get "gne/clg" > > get "posts/index" > #resources :posts, :module => "admin" > namespace "admin" do > resources :posts ,:collection =>{:click =>

Re: [Rails] uninitialized constant ApplicationController

2011-06-21 Thread amritpal pathak
On Tue, Jun 21, 2011 at 8:52 AM, Chirag Singhal wrote: > Try this then > no it haven't work too. > undefined local variable or method `click_admin_posts_path' for #<#:0xb66732a0> amritpalpathakgne.wordpress.com -- You received this message because you are subscribed to the Google Groups

Re: [Rails] uninitialized constant ApplicationController

2011-06-21 Thread amritpal pathak
On Tue, Jun 21, 2011 at 8:27 AM, Chirag Singhal wrote: > In which controller do you have the "click" action defined? > If it's in the same controller > yes it is in the same > then you need to define it in your routes too. > > namespace :admin do > resources :posts, :collection => {:click

Re: [Rails] uninitialized constant ApplicationController

2011-06-21 Thread amritpal pathak
Last query.what should be the syntax to button's part .It was <%= button_to "Great", :action => "click"%> So now it says No route matches {:controller=>"admin/posts", :action=>"click"} i tried to change it too as: <%= button_to "Great", :action => "admin_click"%> But didn't work. amritpalpa

Re: [Rails] uninitialized constant ApplicationController

2011-06-21 Thread amritpal pathak
On Tue, Jun 21, 2011 at 7:55 AM, Chirag Singhal wrote: > All your routes will need to change as per the named scope > > new_post_path should be changed to new_admin_post_path > > form_for(@post) should be changed to form_for [:admin, @post] > > and so on > > thank you very much sir. > problem

Re: [Rails] uninitialized constant ApplicationController

2011-06-21 Thread amritpal pathak
On Tue, Jun 21, 2011 at 7:21 AM, Chirag Singhal wrote: > Yes. Create a new directory "admin" under app/views and move "posts" > directory into that one. > again bad luck.I did as you said. > new error > ActionController::RoutingError in Admin/posts#index Showing */home/amrit/check/app/views/admi

Re: [Rails] uninitialized constant ApplicationController

2011-06-21 Thread amritpal pathak
On Tue, Jun 21, 2011 at 7:06 AM, Chirag Singhal wrote: > That's the problem. Don't move application_controller.rb file > It should always be under app/controllers folder not in the namespaced > folder. > Move it back and your error should go away > thanks sir .Thats error is solved but another o

Re: [Rails] uninitialized constant ApplicationController

2011-06-21 Thread amritpal pathak
On Tue, Jun 21, 2011 at 4:26 AM, Chirag Singhal wrote: > Hi Amrit, > > Are you by any chance migrating this project from Rails 2.x to 3.x? > If yes, you may have the application controller in old format. > > Can you check and verify if you have a file > app/controllers/application_controller.rb? >

Re: [Rails] uninitialized constant ApplicationController

2011-06-20 Thread amritpal pathak
On Mon, Jun 20, 2011 at 10:06 PM, amritpal pathak wrote: > > > On Mon, Jun 20, 2011 at 1:23 PM, Tom Meinlschmidt > wrote: > >> I said... >> >> if you have posts_controller in /app/controllers/admin/posts_controller.rb >> >> then you MUST have

Re: [Rails] uninitialized constant ApplicationController

2011-06-20 Thread amritpal pathak
On Mon, Jun 20, 2011 at 1:23 PM, Tom Meinlschmidt wrote: > I said... > > if you have posts_controller in /app/controllers/admin/posts_controller.rb > > then you MUST have this namespace in your class name > > class PostsController < ApplicationController <- WRONG > ok > > class Admin::PostsC

Re: [Rails] uninitialized constant ApplicationController

2011-06-20 Thread amritpal pathak
On Mon, Jun 20, 2011 at 1:05 PM, Tom Meinlschmidt wrote: > sure.. when you want to use namespace, having two options > > 1. "pseudo" namespace from routes > > in routes.rb > > map '/namespace/:controller/:action/:id' > > and then you'll have all the controllers in /app/controllers w/o any > namesp

Re: [Rails] uninitialized constant ApplicationController

2011-06-20 Thread amritpal pathak
On Mon, Jun 20, 2011 at 12:48 PM, Tom Meinlschmidt wrote: > show us the source of one controller at least > ya sure. > there should be in app/controllers/admin/posts_controller.rb > it is as follow and it was working without using namespace i.e when it was in /app/controller. it is posts_co

[Rails] uninitialized constant ApplicationController

2011-06-20 Thread amritpal pathak
i am following the routing guides (2.6) on rails 3.According to it, i combined the 2 controller under namespace "admin" but couldn't success to make it work.Before doing so everything was working at "localhost:3000/posts". I just made a new directory "admin" in /app/controller/admin and then adde

Re: [Rails] Buttons's routing

2011-06-14 Thread amritpal pathak
On Tue, Jun 14, 2011 at 12:09 PM, Colin Law wrote: > On 14 June 2011 16:32, amritpal pathak wrote: > > > > > > On Tue, Jun 14, 2011 at 3:46 AM, Colin Law > wrote: > >> > >> On 14 June 2011 07:19, amritpal pathak > wrote: > >> > Hey &

Re: [Rails] Buttons's routing

2011-06-14 Thread amritpal pathak
On Tue, Jun 14, 2011 at 3:46 AM, Colin Law wrote: > On 14 June 2011 07:19, amritpal pathak wrote: > > Hey > > My app has some buttons and i have route all to different > action > > in router.rb file but click on each button results in same action. why? >

Re: [Rails] error of looping in rails

2011-06-14 Thread amritpal pathak
On Tue, Jun 14, 2011 at 4:08 AM, Michael Pavling wrote: > Amritpal, please stop posting several messages asking the same thing. > This is not my post -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send em

[Rails] Buttons's routing

2011-06-13 Thread amritpal pathak
Hey My app has some buttons and i have route all to different action in router.rb file but click on each button results in same action. why? Am i missing to specify anything...) Rails:3.0.7 Thanks in advance. -- You received this message because you are subscribed to the Google G

Re: [Rails] Re: Two buttons respond to same action

2011-05-29 Thread amritpal pathak
On Sun, May 29, 2011 at 8:44 AM, Colin Law wrote: > On 29 May 2011 13:33, amritpal pathak wrote: > > > > > > On Sun, May 29, 2011 at 8:29 AM, Colin Law > wrote: > >> > >> On 29 May 2011 13:17, amritpal pathak > wrote: > >> > >

Re: [Rails] Re: Two buttons respond to same action

2011-05-29 Thread amritpal pathak
On Sun, May 29, 2011 at 8:29 AM, Colin Law wrote: > On 29 May 2011 13:17, amritpal pathak wrote: > > > > > > On Sun, May 29, 2011 at 7:16 AM, amritpal pathak < > amritpalpath...@gmail.com> > > wrote: > >> > >> > >> On Sun, May

Re: [Rails] Re: Two buttons respond to same action

2011-05-29 Thread amritpal pathak
On Sun, May 29, 2011 at 7:16 AM, amritpal pathak wrote: > > > On Sun, May 29, 2011 at 4:12 AM, Chris Kottom wrote: > >> This should be everyone's starting point when first learning about Rails >> routing: http://guides.rubyonrails.org/routing.html >> >>

Re: [Rails] Re: Two buttons respond to same action

2011-05-29 Thread amritpal pathak
On Sun, May 29, 2011 at 4:12 AM, Chris Kottom wrote: > This should be everyone's starting point when first learning about Rails > routing: http://guides.rubyonrails.org/routing.html > > Read it a couple of times at least. If you're still unsure, at least > you'll have enough context to come back

Re: [Rails] Re: Two buttons respond to same action

2011-05-28 Thread amritpal pathak
On Sat, May 28, 2011 at 12:30 PM, Frederick Cheung < frederick.che...@gmail.com> wrote: > > > On May 28, 3:06 pm, amritpal pathak wrote: > > Hey > > I am using rails 3.0.7.I created two buttons simply as: > > <%= button_to "Great", :action

Re: [Rails] Re: Two buttons respond to same action

2011-05-28 Thread amritpal pathak
On Sat, May 28, 2011 at 2:24 PM, Bryan Crossland wrote: > On Sat, May 28, 2011 at 11:30 AM, Frederick Cheung < > frederick.che...@gmail.com> wrote: > >> >> >> On May 28, 3:06 pm, amritpal pathak wrote: >> > Hey >> > I a

[Rails] Two buttons respond to same action

2011-05-28 Thread amritpal pathak
Hey I am using rails 3.0.7.I created two buttons simply as: <%= button_to "Great", :action => "click"%> <%= button_to "click me", :action => "work"%> Router.rb file looks like: Check::Application.routes.draw do # get "gne/clg" get "posts/index" resources :posts do end #ge

Re: [Rails] Failed to run migration

2011-05-24 Thread amritpal pathak
On Tue, May 24, 2011 at 3:08 AM, amritpal pathak wrote: > > > On Tue, May 24, 2011 at 2:43 AM, Colin Law wrote: > >> On 24 May 2011 07:25, John shelfer wrote: >> > i have a migration but after running it (rake db:migrate),it created >> > a table

Re: [Rails] Failed to run migration

2011-05-24 Thread amritpal pathak
On Tue, May 24, 2011 at 2:43 AM, Colin Law wrote: > On 24 May 2011 07:25, John shelfer wrote: > > i have a migration but after running it (rake db:migrate),it created > > a table "posts" but couldn't create columns. > > > > class CreatePosts < ActiveRecord::Migration > > def self.up > >cre

[Rails] How to enable production enviornment in RoR 2.3.5

2011-04-20 Thread amritpal pathak
I want to enable production enviornment for my appication.The content of database.yml file is as # SQLite version 3.x # gem install sqlite3-ruby (not necessary on OS X Leopard) development: adapter: mysql database: amritpal username: root password: 12345 pool: 5 timeout: 5000 # W

[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] 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

[Rails] unable to install Phusion passenger

2011-04-15 Thread amritpal pathak
i tried to install Phusion passenger ,when is issued sudo gem install passenger; I got following error messages WARNING: RubyGems 1.2+ index not found for: RubyGems will revert to legacy indexes degrading performance. ERROR: C

[Rails] script/server (Error)

2011-04-12 Thread amritpal pathak
i did cd blog script/server and got follwoing message . => Booting WEBrick => Rails 2.3.8 application starting on http://0.0.0.0:3000 /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/connection_adapters/abstract/connection_specification.rb:62:in `establish_connection': adapter:

[Rails] rake db:create (Gives the error)

2011-04-12 Thread amritpal pathak
i tried to generate a database .The config/database.yml file hold following for the development environment adapter: mysql database: blogg username: root password: 12345 socket: /var/run/mysqld/mysqld.sock rails -v=2.3.8 gem -v= 1.3.7 ruby -v=ruby 1.8.7 (2010-01-10 patchlevel 249

[Rails] Not geeing the reply by mail

2011-03-28 Thread amritpal pathak
I had done a mail to this group regarding my problem but not getting reply by the mail even the guest are replying to post.The post with replies is at http://www.ruby-forum.com/topic/1371088 Why not receiving the mail for this group? Thanks -- You received this message because you are subscrib

[Rails] undefined method `start_form_tag'

2011-03-27 Thread amritpal pathak
I tried to generate the form using <%= start_form_tag :action => 'create' %> in app/view/book/new.rhtml and when i browse to localhost:3000/book/new i got the following error undefined method `start_form_tag' for # Please help me to solve this Thanks -- You

[Rails] Ror'tutorial

2011-03-15 Thread amritpal pathak
can anyone suggest me a good tutorial for rails(2.3.8)? 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 unsubscribe from this group, send email to rubyon

[Rails] Things that framework other than RoR Cannot do?

2011-02-09 Thread amritpal pathak
Including druapl,wordpress(Cms) and other frameworks like django what are those things in web development that they cannot do but Ruby on Rails can do?? Please clear me this confusion!! Thanking you. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Tal

[Rails] How to give link to image in .erb file

2011-02-04 Thread amritpal pathak
i am new to ruby.I want to add one image to my webpage.Please tell me how to give a link to image from .erb file?? 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.c

[Rails] What is Rake and Gem is actually in RubyonRails.???

2011-02-03 Thread amritpal pathak
I am new to Ruby on Rails and number of times interacted with rake and gem. Can anyone explain what is Rake and Gem 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 rubyonrails-talk@goog

[Rails] Re: [Rails-core] Re: (Unable to start rails application) ruby scipt/server error

2010-10-24 Thread amritpal pathak
Rails application which i create manually like rails new blog and the content of the file "blog/config/boot.rb" are require 'rubygems' # Set up gems listed in the Gemfile. gemfile = File.expand_path('../../Gemfile', __FILE__) begin ENV['BUNDLE_GEMF

[Rails] (Unable to start rails application) ruby scipt/server error

2010-10-22 Thread amritpal pathak
1) I installed the ruby-1.9.2-p0 and rubygems-1.3.7 in the (/usr/local/src directory ) 2) Then i installed rails from terminal by typing follwoing sudo gem install rails --include-dependencies 3) Then i made a rails applcation from terminal as rails new de

[Rails] Problem(Error) in ruby-on rails installtion

2010-10-21 Thread amritpal pathak
To install the ruby-on rails on my computer i used the following commands in terminal 1)sudo apt-get install build-essentail (completed successfully) 2)sudo apt-get install ruby-full (completed successfully) 3)Download the rubygems-1.3.7.tgz in download directory and the

[Rails] How to run the application Rubyonrails's on the server (localhost)

2010-10-19 Thread amritpal pathak
i have download the source code of OpenStreetview.org ,this is a rubyonrails applcation.but i dont know how to run it on my computer. i have installed ruby,rails,apache,mysql(Just install) Besides this i know nothing. please somebody help how to run the rubyonrails applcation at server at own comp

[Rails] How to run the application Rubyonrails's on the server (localhost)

2010-10-18 Thread amritpal pathak
i have download the source code of OpenStreetview.org ,this is a rubyonrails applcation.but i dont know how to run it on my computer. i have installed ruby,rails,apache,mysql(Just install) Besides this i know nothing. please somebody help how to run the rubyonrails applcation at server at own comp

[Rails] Unable to start rail application at localhost

2010-10-16 Thread amritpal pathak
i am new to ruby on rail. i installed it to my computer.After that i created the rail application by typing in terminal rail rubyapplication It was create in my home directory.Afterwared i did follwoing