Re: [Rails] Career

2012-07-27 Thread Amrit Pal Pathak
On Fri, Jul 27, 2012 at 1:13 PM, Amardeep Singh wrote: > If I master than what is the future Then world is yours. Hope you will understand. -- Thanks Regards Amrit Pal Mobile No:+9780584363 Website:amritpalpathak.blogspot.com -- You received this message because you are subscribed to the

Re: [Rails] Career

2012-07-26 Thread Amrit Pal Pathak
On Fri, Jul 27, 2012 at 10:15 AM, Amardeep Singh wrote: >> Future in Ror Future is bright.it depends upon you how much you are master with RoR. -- Thanks Regards Amrit Pal Mobile No:+9780584363 Website:amritpalpathak.blogspot.com -- You received this message because you are subscribed

Re: [Rails] Re: Is twitter devloped in Ror

2012-07-16 Thread Amrit Pal Pathak
On Mon, Jul 16, 2012 at 3:12 PM, Amardeep Singh wrote: > i bet with some one and he is saying that its on .net or java bt i thought > it is ROR or may be in some other language. its RoR based.It might be possible they have used other technologies for enhancement. -- Thanks Regards Amrit Pal M

Re: [Rails] Script/server gives the error

2012-02-13 Thread Amrit Pal Pathak
On Mon, Feb 13, 2012 at 7:42 PM, Colin Law wrote: > On 13 February 2012 13:58, Amrit Pal Pathak wrote: >> script/server gives the following error. >> >> => Booting WEBrick >> => Rails 2.3.8 application starting on http://0.0.0.0:3000 >> /usr/lib/rub

[Rails] Script/server gives the error

2012-02-13 Thread Amrit Pal Pathak
script/server gives the following error. => Booting WEBrick => Rails 2.3.8 application starting on http://0.0.0.0:3000 /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:105:in `const_missing': uninitialized constant User::Authentication (NameError) from /ho

Re: [Rails] how to show the bigger image after clicking on thumnail ??

2012-02-12 Thread Amrit Pal Pathak
On Sun, Feb 12, 2012 at 8:57 PM, Javier Quarite wrote: > > > On Sun, Feb 12, 2012 at 10:24 AM, Amrit Pal Pathak > wrote: >> >> On Sun, Feb 12, 2012 at 8:48 PM, radhames brito wrote: >> > Your question is not rails related since that is done via javascript.

Re: [Rails] how to show the bigger image after clicking on thumnail ??

2012-02-12 Thread Amrit Pal Pathak
On Sun, Feb 12, 2012 at 8:48 PM, radhames brito wrote: > Your question is not rails related since that is done via javascript. Here > are some libs for jquery: But i want to do it in rails. > http://jacklmoore.com/colorbox/ > > http://lokeshdhakar.com/projects/lightbox2/ jquery will work in rails'

Re: [Rails] how to show the bigger image after clicking on thumnail ??

2012-02-12 Thread Amrit Pal Pathak
On Sun, Feb 12, 2012 at 8:40 PM, thiagocifani wrote: > I think you can call a link_to method to point to this image in a large > size! If you are using paperclip you can call link_to “image_foo“, > path_to_original_size“ . thanks for the reply.i hope it will help but i am not a rails expert so don

Re: [Rails] how to show the bigger image after clicking on thumnail ??

2012-02-12 Thread Amrit Pal Pathak
On Sun, Feb 12, 2012 at 7:48 PM, Javier Quarite wrote: > > > On Sun, Feb 12, 2012 at 9:04 AM, Amrit Pal Pathak > wrote: >> >> How to enlarge a thumnail ,when somebody click on it in ruby on rails ?? >> is there any gem for it? >> >> please help . >>

[Rails] how to show the bigger image after clicking on thumnail ??

2012-02-12 Thread Amrit Pal Pathak
How to enlarge a thumnail ,when somebody click on it in ruby on rails ?? is there any gem for it? please help . -- Thanks Regards Amrit Pal amritpalpathak.blogspot.com -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this

[Rails] rake command shows the error

2012-02-11 Thread Amrit Pal Pathak
rails -v=2.3.8 gem -v= 1.4.2 ruby -v=1.8.7 When i issue the "rake" command ,it gives the following error . (in /home/amrit/amrit/OSV/OpenStreetView) /usr/bin/ruby1.8 -I"lib:test" "/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/functional/main_controller_test.rb" "test/

[Rails] rake aborted

2011-09-18 Thread Amrit Pal Pathak
I migrated the database and it gives the error (in /home/amrit/library) rake aborted! no such file to load -- rubygems /home/amrit/library/Rakefile:4:in `require' (See full trace by running task with --trace) Please somebody suggest what got wrong? -- Thanks Regards Amrit Pal amritpalpathak.b

Re: [Rails] Talented Junior Ruby Developer Wanted!

2011-09-13 Thread Amrit Pal Pathak
On Tue, Sep 13, 2011 at 11:37 AM, vishal singh wrote: > Hello, > >My name is vishal singh.I am B-Tech graduate 2011 passout.I have 7 > month exp in Ruby On Rails .Currently i am working in CMIsoft ghaziabad. > > > What is purpose of this mail?What is your question? > -- Thanks Regards

Re: [Rails] Re: Library management system in ROR

2011-09-10 Thread Amrit Pal Pathak
On Sun, Sep 11, 2011 at 1:43 AM, Robert Walker wrote: > amritpal p. wrote in post #1021198: > > hey everyone > > I have to work on a project of library > > management > > system .Can anyone please suggest me a gud library manangement system > > already build in ROR so that

[Rails] Library management system in ROR

2011-09-10 Thread Amrit Pal Pathak
hey everyone I have to work on a project of library management system .Can anyone please suggest me a gud library manangement system already build in ROR so that i can work on it and can customized according to the requirements. -- Thanks Regards Amrit Pal amritpalpath

[Rails] form validation

2011-07-10 Thread Amrit Pal Pathak
I am using rails 3.0.7.i validate a field in form by inserting following line in model class Post < ActiveRecord::Base validates_presence_of :title end But i didn't work.Is there any syntax change in rails 3.0.7? Thanks amritpalpathak.blogspot.com -- You received this mess

Re: [Rails] Best way for social networking in rails

2011-07-09 Thread Amrit Pal Pathak
On Sat, Jul 9, 2011 at 1:38 AM, Hassan Schroeder wrote: > On Fri, Jul 8, 2011 at 10:25 PM, Amrit Pal Pathak > wrote: > > > Which is the best way in rails for making a social networking site.? > > BDD :-) > >I meant is there any good cms or

[Rails] Best way for social networking in rails

2011-07-08 Thread Amrit Pal Pathak
Hey Which is the best way in rails for making a social networking site.? Thanks amritpalpathak.blogspot.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@googlegr

[Rails] Chat client In rails

2011-07-08 Thread Amrit Pal Pathak
hey I want to develope a chat client in rails .Please suggest me what i should do.? Thanks in advance amritpalpathak.blogspot.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 rubyonra

Re: [Rails] Social Network

2011-07-08 Thread Amrit Pal Pathak
On Fri, Jul 8, 2011 at 4:56 PM, web two wrote: > Anyone interested in social network startup. If so, send me your skill set > to web2id...@yahoo.com Please mention what is your best skill > Hey I was eagerly waiting to start social networking project.Nice to see you here.Well

Re: [Rails] ruby script/server giving error

2011-07-04 Thread Amrit Pal Pathak
On Tue, Jul 5, 2011 at 2:15 AM, rajeevsharma86 wrote: > run "gem env" and paste here > > RubyGems Environment: - RUBYGEMS VERSION: 1.3.7 - RUBY VERSION: 1.8.7 (2010-01-10 patchlevel 249) [i486-linux] - INSTALLATION DIRECTORY: /usr/lib/ruby/gems/1.8 - RUBY EXECUTABLE: /usr/bin/ruby1.8

[Rails] ruby script/server giving error

2011-07-04 Thread Amrit Pal Pathak
Starting a server giving error => Rails 2.3.5 application starting on http://0.0.0.0:3000 /usr/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/gem_dependency.rb:119:Warning: Gem::Dependency#version_requirements is deprecated and will be removed on or after August 2010. Use #requirement /usr/lib/ru

Re: [Rails] Re: rake db:create:all gives the error ??

2011-07-04 Thread Amrit Pal Pathak
On Tue, Jul 5, 2011 at 12:15 AM, Chirag Singhal wrote: > Open your Rakefile and replace "rake/rdoctask" with "rdoc/task" >done > Install rdoc gem > done > and add config.gem 'rdoc' to your environment file > done > and then you should be good to go. > Still it didn't work.rake db:cre

[Rails] Re: rake db:create:all gives the error ??

2011-07-04 Thread Amrit Pal Pathak
On Mon, Jul 4, 2011 at 2:51 AM, Amrit Pal Pathak wrote: > > > On Mon, Jul 4, 2011 at 2:08 AM, Amrit Pal Pathak < > amritpalpath...@gmail.com> wrote: > >> I executed the "rake db:create:all" and it gives following error message >> >>rake/rdocta

[Rails] Re: rake db:create:all gives the error ??

2011-07-03 Thread Amrit Pal Pathak
On Mon, Jul 4, 2011 at 2:08 AM, Amrit Pal Pathak wrote: > I executed the "rake db:create:all" and it gives following error message > >rake/rdoctask is deprecated. Use rdoc/task instead (in RDoc 2.4.2+) > rake aborted! > uninitialized constant ActiveSupport::Dependen

[Rails] rake db:create:all gives the error ??

2011-07-03 Thread Amrit Pal Pathak
I executed the "rake db:create:all" and it gives following error message rake/rdoctask is deprecated. Use rdoc/task instead (in RDoc 2.4.2+) rake aborted! uninitialized constant ActiveSupport::Dependencies::Mutex (See full trace by running task with --trace) I have: rails => 2.3.5,3.0.7 gem

Re: [Rails] Social Networking

2011-07-03 Thread Amrit Pal Pathak
On Fri, Jun 24, 2011 at 1:52 PM, exelstu...@gmail.com wrote: > Try some of these: > > https://github.com/insoshi/insoshi#readme > > http://communityengine.org/ > > http://lovdbyless.com/ > > http://www.enginey.com/ > > Lovd by Less looks pretty good, haven’t had a chance to try it yet tho. >

Re: [Rails] How to update Ruby gem version?

2011-07-02 Thread Amrit Pal Pathak
On Sat, Jul 2, 2011 at 11:25 AM, Conrad Taylor wrote: > On Sat, Jul 2, 2011 at 8:04 AM, Amrit Pal Pathak < > amritpalpath...@gmail.com> wrote: > >> >> >> On Sat, Jul 2, 2011 at 10:46 AM, Conrad Taylor wrote: >> >>> On Sat, Jul 2, 2011 at 7:10 AM,

Re: [Rails] How to update Ruby gem version?

2011-07-02 Thread Amrit Pal Pathak
On Sat, Jul 2, 2011 at 10:46 AM, Conrad Taylor wrote: > On Sat, Jul 2, 2011 at 7:10 AM, Amrit Pal Pathak < > amritpalpath...@gmail.com> wrote: > >> >> >> On Sat, Jul 2, 2011 at 5:58 AM, Conrad Taylor wrote: >> >>> On Sat, Jul 2, 2011 at 2:50 AM,

Re: [Rails] How to update Ruby gem version?

2011-07-02 Thread Amrit Pal Pathak
On Sat, Jul 2, 2011 at 5:58 AM, Conrad Taylor wrote: > On Sat, Jul 2, 2011 at 2:50 AM, Amrit Pal Pathak < > amritpalpath...@gmail.com> wrote: > >> >> >> On Sat, Jul 2, 2011 at 5:22 AM, Conrad Taylor wrote: >> >>> On Sat, Jul 2, 2011 at 12:28 AM,

Re: [Rails] How to update Ruby gem version?

2011-07-02 Thread Amrit Pal Pathak
On Sat, Jul 2, 2011 at 5:22 AM, Conrad Taylor wrote: > On Sat, Jul 2, 2011 at 12:28 AM, Amrit Pal Pathak < > amritpalpath...@gmail.com> wrote: > >> How can i update my Rails gem version. to 2.2.2. >> Now it is . >> gem - v >> 1.8.7 >> >> than

Re: [Rails] How to update Ruby gem version?

2011-07-02 Thread Amrit Pal Pathak
On Sat, Jul 2, 2011 at 4:48 AM, rajeevsharma86 wrote: > gem update --system try google for this > > It says latest version currently install. > gem -v => 1.8.7 But i need 2.2.2. How can i ? Thanks amritpalpathakgne.wordpress.com -- You received this

[Rails] How to update Ruby gem version?

2011-07-02 Thread Amrit Pal Pathak
How can i update my Rails gem version. to 2.2.2. Now it is . gem - v 1.8.7 thanks in advance amritpalpathakgne.wordpress.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@googlegro

[Rails] Re: Address already in use - bind(2) (Errno::EADDRINUSE)

2011-05-20 Thread amrit pal pathak
On May 18, 5:37 am, Peter De Berdt wrote: > On 18 May 2011, at 11:26, amrit pal pathak wrote: > > > > > > > > > > > I made a new rails app and when i started the server ,it gave > > following error message. > > > => Booting Mongrel > &g

[Rails] Address already in use - bind(2) (Errno::EADDRINUSE)

2011-05-18 Thread amrit pal pathak
I made a new rails app and when i started the server ,it gave following error message. => Booting Mongrel => Rails 2.3.8 application starting on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server Exiting /usr/lib/ruby/1.8/mongrel/tcphack.rb:12:in `initialize_without_backlo

[Rails] scaffold didn't work

2011-05-06 Thread amrit pal pathak
i am using rails -v 3.0.7.when i tried "rails generate scaffold try name:string number:decimal" , it gave following error message invoke active_record /usr/lib/ruby/1.8/yaml.rb:133:in `load': syntax error on line 7, col 2: ` pool: 5' (ArgumentError) from /usr/lib/ruby/1.8/yaml.rb:133:in `l

[Rails] Re: "uninitialized constant PostsController::Post"

2011-05-01 Thread amrit pal pathak
On May 1, 5:11 am, John shelfer wrote: > On May 1, 4:12 am, Colin Law wrote: > > > > > > > > > On 1 May 2011 05:52, amrit pal pathak wrote: > > > > ... > > > Showing /home/amrit/final/app/views/posts/index.html.erb where line #4 &g

[Rails] Re: "uninitialized constant PostsController::Post"

2011-04-30 Thread amrit pal pathak
On Apr 30, 12:08 pm, Colin Law wrote: > On 30 April 2011 16:40, amrit pal pathak wrote: > > > This time i read scaffold tutorial very  carefully and finally try to > > generate a form without using the scaffold(just used a controller and > > view ).what i have done till

[Rails] "uninitialized constant PostsController::Post"

2011-04-30 Thread amrit pal pathak
This time i read scaffold tutorial very carefully and finally try to generate a form without using the scaffold(just used a controller and view ).what i have done till now ,is as follow.Using rails 3.0.7. "rails generate controller posts index" 1) post_controll

[Rails] Re: How to give link between two files of same view?

2011-04-29 Thread amrit pal pathak
On Apr 29, 11:33 am, Hassan Schroeder wrote: > On Fri, Apr 29, 2011 at 8:08 AM, amrit pal pathak > > wrote: > > I have one controller(home) with two methods(empty) ,name are > > index,new).Corressponding have 2 .html.erb files in home view.How to > > give a link

[Rails] How to give link between two files of same view?

2011-04-29 Thread amrit pal pathak
I have one controller(home) with two methods(empty) ,name are index,new).Corressponding have 2 .html.erb files in home view.How to give a link from file index.html.erb to new.html.erb i.e syntax? I tried <%=link_to 'Click me',home_new_path%>,but it failed Thanks -- You received this messa

[Rails] Re: Migration error

2011-04-28 Thread amrit pal pathak
On Apr 28, 12:49 pm, Colin Law wrote: > On 28 April 2011 15:47, Pale Horse wrote: > > >> amritpal p. wrote in post #995533: > >> Run it to generate a new migration > >> Then ran "rake db:migrate", it created a new columns in table products > >> with name > >> "price", but it didn't change the

[Rails] Re: Migration error

2011-04-28 Thread amrit pal pathak
On Apr 28, 10:47 am, Pale Horse wrote: > > amritpal p. wrote in post #995533: > > Run it to generate a new migration > > Then ran "rake db:migrate", it created a new columns in table products with > > name > > "price", but it didn't change the view (didn't create a field with name > > "price")

[Rails] Migration error

2011-04-28 Thread amrit pal pathak
Run it to generate a new migration 1)rails generate migration add_price_to_product price:decimal 2)Added following to migration file class AddPriceToProduct < ActiveRecord::Migration def self.up add_column :products, :price, :decimal, :precision => 8, :scale => 2, :default => 0 end def self.do

[Rails] Migration error

2011-04-28 Thread amrit pal pathak
Run it to generate a new migration 1)rails generate migration add_price_to_product price:decimal 2)Added following to migration file class AddPriceToProduct < ActiveRecord::Migration def self.up add_column :products, :price, :decimal, :precision => 8, :scale => 2, :default => 0 end def self.do

[Rails] Re: Routing Error

2011-04-28 Thread amrit pal pathak
On Apr 28, 3:25 am, Colin Law wrote: > On 28 April 2011 02:37, amrit pal pathak wrote: > > > > > > > > > > > > > On Apr 27, 10:52 am, Pale Horse wrote: > >> > amritpal p. wrote in post #995323: > > >> > class SayController

[Rails] Re: NoMethodError in Book

2011-04-27 Thread amrit pal pathak
On Apr 26, 8:35 am, amrit pal pathak wrote: > On Apr 26, 7:53 am, Frederick Cheung > wrote: > > > > > > > > > > > On 26 Apr 2011, at 12:28, amrit pal pathak > > wrote: > > > > On Apr 26, 5:55 am, Frederick Cheung > > >

[Rails] Re: Routing Error

2011-04-27 Thread amrit pal pathak
On Apr 27, 10:52 am, Pale Horse wrote: > > amritpal p. wrote in post #995323: > > > class SayController < ApplicationController > >  def hello > >   @timee = Time.now > >  end > >  def goodbye > > >  end > > end > > > /app/views/say/hello.html.erb looks like: > > > It is now <%= @timee %> > > Go

[Rails] Re: NoMethodError in Book

2011-04-27 Thread amrit pal pathak
Awaiting your helpful reply!! -- 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...@googlegroups

[Rails] Re: Routing Error

2011-04-27 Thread amrit pal pathak
very strange again !! say_controller.rb looks like: class SayController < ApplicationController def hello @timee =Time.now end def goodbye end end /app/view/say/hello.html.erb looks like: It is now <%= @timee%> Goodbye /app/view/say/goodbye.html.

[Rails] Re: NoMethodError in Book

2011-04-27 Thread amrit pal pathak
On Apr 26, 8:35 am, amrit pal pathak wrote: > On Apr 26, 7:53 am, Frederick Cheung > wrote: > > > > > > > > > > > On 26 Apr 2011, at 12:28, amrit pal pathak > > wrote: > > > > On Apr 26, 5:55 am, Frederick Cheung > > >

[Rails] Re: Routing Error

2011-04-26 Thread amrit pal pathak
On Apr 26, 12:09 pm, Pale Horse wrote: > > amritpal p. wrote in post #995070: > > Generated a controller "rails generate controller say" and then added > > a method to id named hello as. > >  def hello > >  end > >                             Made a file /app/view/say/hello.html.erb > > as "sudo

[Rails] Re: Routing Error

2011-04-26 Thread amrit pal pathak
On Apr 26, 10:01 am, Pale Horse wrote: > > amritpal p. wrote in post #995108: > > >> On Apr 26, 9:26am, Pale Horse wrote: > >> the root route to take effect." > > it helped but without deleting that file and setting routing > > path to say controller "localhost:3000/say/hello" wasn't work? i th

[Rails] Re: Routing Error

2011-04-26 Thread amrit pal pathak
On Apr 26, 9:26 am, Pale Horse wrote: > > amritpal p. wrote in post #995099: > > > ok .Done > > "root :to => "say#hello"". Still unsussess. > > No route matches "/say/hello" > > > Thank you. > > Quoted from the Rails guide: "You should put the root route at the end > of the file. You also need t

[Rails] Re: Routing Error

2011-04-26 Thread amrit pal pathak
On Apr 26, 8:31 am, Colin Law wrote: > On 26 April 2011 13:22, amrit pal pathak wrote: > > > > > On Apr 26, 7:54 am, Frederick Cheung > > wrote: > >> On 26 Apr 2011, at 10:51, amrit pal pathak > >> wrote: > > >> > Generated a

[Rails] Re: NoMethodError in Book

2011-04-26 Thread amrit pal pathak
On Apr 26, 7:53 am, Frederick Cheung wrote: > On 26 Apr 2011, at 12:28, amrit pal pathak wrote: > > > > > > > > > > > > > On Apr 26, 5:55 am, Frederick Cheung > > wrote: > >> On Apr 26, 10:21 am, amrit pal pathak > >> wrote:

[Rails] Re: NoMethodError in Book

2011-04-26 Thread amrit pal pathak
On Apr 26, 7:52 am, Ar Chron wrote: > amritpal p. wrote in post #995086: > > > Stuff... > > You seem to be lacking some fundamental "organizational" knowledge as it > pertains to a Rails application. > > What I found very instructive way back when was to scaffold a basic > application and see wh

[Rails] Re: Routing Error

2011-04-26 Thread amrit pal pathak
On Apr 26, 7:54 am, Frederick Cheung wrote: > On 26 Apr 2011, at 10:51, amrit pal pathak wrote: > > > Generated a controller "rails generate controller say" and then added > > a method to id named hello as. > > You need to add a route to the action. Col

[Rails] Re: NoMethodError in Book

2011-04-26 Thread amrit pal pathak
On Apr 26, 5:55 am, Frederick Cheung wrote: > On Apr 26, 10:21 am, amrit pal pathak > wrote: > > > > >                              is it saying @book variablei is nil? > >    it is defined in controller as : > > >  class BookController < Applicatio

[Rails] Re: Routing Error

2011-04-26 Thread amrit pal pathak
Please somebody help me. -- 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...@googlegroups.com.

[Rails] Routing Error

2011-04-26 Thread amrit pal pathak
Generated a controller "rails generate controller say" and then added a method to id named hello as. def hello end Made a file /app/view/say/hello.html.erb as "sudo gedit hello.html.erb" and add follwoing to it Hello, Rails! Hello from Rails!

[Rails] Routing Error

2011-04-26 Thread amrit pal pathak
Generated a controller "rails generate controller say" and then added a method to id named hello as. def hello end Made a file /app/view/say/hello.html.erb as "sudo gedit hello.html.erb" and add follwoing to it Hello, Rails! Hello from Rails!

[Rails] Re: NoMethodError in Book

2011-04-26 Thread amrit pal pathak
On Apr 26, 5:09 am, Colin Law wrote: > On 26 April 2011 09:59, amrit pal pathak wrote: > > > > > > > > > > > > > On Apr 26, 4:44 am, Colin Law wrote: > >> On 26 April 2011 09:41, amrit pal pathak wrote: > > >> > On Apr 26, 4

[Rails] Re: NoMethodError in Book

2011-04-26 Thread amrit pal pathak
On Apr 26, 4:46 am, Michael Pavling wrote: > On 26 April 2011 09:15, Colin Law wrote: > > > I just hope I am building up rewards for when it is time to meet my Maker. > > You have the patience of a saint Thanks sir -- You received this message because you are subscribed to the Google Gr

[Rails] Re: NoMethodError in Book

2011-04-26 Thread amrit pal pathak
On Apr 26, 4:44 am, Colin Law wrote: > On 26 April 2011 09:41, amrit pal pathak wrote: > > > > > On Apr 26, 4:30 am, amrit pal pathak > > wrote: > >> Afer removing that block(from index.html.erb) ,i can see localhost: > >> 3000/book ,but when i click

[Rails] Re: NoMethodError in Book

2011-04-26 Thread amrit pal pathak
On Apr 26, 4:30 am, amrit pal pathak wrote: > Afer removing that block(from index.html.erb) ,i can see localhost: > 3000/book ,but when i click on "New book" link it gave follwoing error > > NoMethodError in Book#new > > Showing /home/amrit/boook/app/views/book/

[Rails] Re: NoMethodError in Book

2011-04-26 Thread amrit pal pathak
Afer removing that block(from index.html.erb) ,i can see localhost: 3000/book ,but when i click on "New book" link it gave follwoing error NoMethodError in Book#new Showing /home/amrit/boook/app/views/book/_form.html.erb where line #1 raised: undefined method `model_name' for NilClass:Class

[Rails] Re: NoMethodError in Book

2011-04-26 Thread amrit pal pathak
On Apr 26, 4:15 am, Colin Law wrote: > On 26 April 2011 08:56, amrit pal pathak wrote: > > > ... > > class BookController < ApplicationController > >  def index > >  @book =Book.new > > Think about what this is doing.  What is @book?  It i

[Rails] Re: NoMethodError in Book

2011-04-26 Thread amrit pal pathak
On Apr 25, 11:59 am, Colin Law wrote: > On 25 April 2011 16:50, amrit pal pathak wrote: > > > > > On Apr 25, 9:37 am, Tim Shaffer wrote: > >> Actually it looks like you're not defining it in the example you provided. > > >> Your controller is defini

[Rails] Re: NoMethodError in Book

2011-04-25 Thread amrit pal pathak
On Apr 25, 9:37 am, Tim Shaffer wrote: > Actually it looks like you're not defining it in the example you provided. > > Your controller is defining a variable called @book, but your view is trying > to reference a variable called @post. Do you have a PostsController? Yes it was mist

[Rails] Re: NoMethodError in Book

2011-04-25 Thread amrit pal pathak
On Apr 25, 9:01 am, Tim Shaffer wrote: > What does your controller look like? Do you define the @post variable? Yes i defined it.it looks like class BookController < ApplicationController def index @book =Book.all render :index end end Thanks -- You received this me

[Rails] NoMethodError in Book

2011-04-25 Thread amrit pal pathak
I got a following error. NoMethodError in Book#new Showing /home/amrit/boook/app/views/book/_form.html.erb where line #1 raised: undefined method `model_name' for NilClass:Class The content of _form.html.erb file are: <%= form_for(@post) do |f| %> <% if @post.errors.any? %> <%=

[Rails] NoMethodError in Book

2011-04-25 Thread amrit pal pathak
I got a following error. NoMethodError in Book#new Showing /home/amrit/boook/app/views/book/_form.html.erb where line #1 raised: undefined method `model_name' for NilClass:Class The content of _form.html.erb file are: <%= form_for(@post) do |f| %> <% if @post.errors.any? %> <%=

[Rails] Re: Could not generate a form

2011-04-25 Thread amrit pal pathak
On Apr 24, 1:07 pm, Colin Law wrote: > On 24 April 2011 17:29, amrit pal pathak wrote: > > > > > > > > > > > ... > >        i read again and now try it myself.Exactly follow the > > tutorils and try to make changes in new ror app.please go throug

[Rails] Re: Could not generate a form

2011-04-24 Thread amrit pal pathak
On Apr 24, 12:22 pm, amrit pal pathak wrote: > On Apr 24, 8:36 am, Colin Law wrote: > > > > > > > > > > > On 24 April 2011 13:23, amrit pal pathak wrote: > > > > On Apr 24, 7:25 am, Colin Law wrote: > > >> On 24 April 2011 10

[Rails] Re: Could not generate a form

2011-04-24 Thread amrit pal pathak
On Apr 24, 8:36 am, Colin Law wrote: > On 24 April 2011 13:23, amrit pal pathak wrote: > > > > > > > > > > > > > On Apr 24, 7:25 am, Colin Law wrote: > >> On 24 April 2011 10:28, amrit pal pathak wrote: > > >> > I generated  c

[Rails] Re: Could not generate a form

2011-04-24 Thread amrit pal pathak
On Apr 24, 7:25 am, Colin Law wrote: > On 24 April 2011 10:28, amrit pal pathak wrote: > > > I generated  controller and view as. > >     "script/generate controller home index" > > > Tried to make a form .Edited the index method in home controller and >

[Rails] Could not generate a form

2011-04-24 Thread amrit pal pathak
7.I Have read the form generation tutorils but could not understand lot.So asking here. Regards Amrit Pal Pathak 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@g

[Rails] Could not generate a form

2011-04-24 Thread amrit pal pathak
7.I Have read the form generation tutorils but could not understand lot.So asking here. Regards Amrit Pal Pathak 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@g

[Rails] Could not generate a form

2011-04-24 Thread amrit pal pathak
7.I Have read the form generation tutorils but could not understand lot.So asking here. Regards Amrit Pal Pathak 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@g

[Rails] Re: How to connect two controllers ?

2011-04-24 Thread amrit pal pathak
On Apr 24, 2:52 am, Colin Law wrote: > On 24 April 2011 06:45, amrit pal pathak wrote: > > > > > > > > > > > > > On Apr 23, 12:11 pm, Frederick Cheung > > wrote: > >> On Apr 23, 5:04 pm, amrit pal pathak > >> wrote:> On Apr

[Rails] Re: How to connect two controllers ?

2011-04-23 Thread amrit pal pathak
On Apr 23, 12:11 pm, Frederick Cheung wrote: > On Apr 23, 5:04 pm, amrit pal pathak > wrote:> On Apr 23, 11:58 am, Colin Law wrote:> On 23 > April 2011 16:48, amrit pal pathak wrote: > > > > And the result from rake routes?  You did try that didn't

[Rails] Re: How to connect two controllers ?

2011-04-23 Thread amrit pal pathak
On Apr 23, 11:58 am, Colin Law wrote: > On 23 April 2011 16:48, amrit pal pathak wrote: > > > ... > >           Now i gave plural ,again error > >    Hello > >   <%=link_to 'Submit',clicks_path %> > > > Error is > > undefine

[Rails] Re: How to connect two controllers ?

2011-04-23 Thread amrit pal pathak
On Apr 23, 10:11 am, Colin Law wrote: > On 23 April 2011 13:40, amrit pal pathak wrote: > > > > > > > > > > > > > On Apr 23, 8:26 am, Colin Law wrote: > >> On 23 April 2011 13:18, amrit pal pathak wrote: > > >> > I ge

[Rails] Re: How to connect two controllers ?

2011-04-23 Thread amrit pal pathak
On Apr 23, 8:26 am, Colin Law wrote: > On 23 April 2011 13:18, amrit pal pathak wrote: > > > > > I generated a simple controller using "script/generate controller form > > myfun".Then edited a /app/view/form/myfun.html.erb  simply as

[Rails] How to connect two controllers ?

2011-04-23 Thread amrit pal pathak
I generated a simple controller using "script/generate controller form myfun".Then edited a /app/view/form/myfun.html.erb simply as Hello <%=link_to 'Submit'%> I created a another controller using "script/generate controller click fun".Edited the a

[Rails] Help to understand scaffold's code!

2011-04-22 Thread amrit pal pathak
Follwed a Guide at http://guides.rubyonrails.org/getting_started.html.Generated a scafffold as rails generate scaffold Post name:string title:string content:text The content of app/view/posts/ index.html.erb file are as under Listing posts Name

[Rails] Re: How to add a link ?

2011-04-22 Thread amrit pal pathak
On Apr 23, 2:20 am, Carina Brito wrote: > Hi, > Did you add a resources :posts at this routes? error is solved .was syntax error. 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 ru

[Rails] How to add a link ?

2011-04-22 Thread amrit pal pathak
I followed a RoR guide at http://guides.rubyonrails.org/getting_started.html . At 6.2(Adding a link) ,i got a error.I Open app/views/home/ index.html.erb and modify it as follows: Hello, Rails! <%= link_to "My Blog", posts_path %> Now started server ,and when i click on "My b

[Rails] How to add a link ?

2011-04-22 Thread amrit pal pathak
I followed a RoR guide at http://guides.rubyonrails.org/getting_started.html . At 6.2(Adding a link) ,i got a error.I Open app/views/home/ index.html.erb and modify it as follows: Hello, Rails! <%= link_to "My Blog", posts_path %> Now started server ,and when i click on "My b

[Rails] How to add a link ?

2011-04-22 Thread amrit pal pathak
I followed a RoR guide at http://guides.rubyonrails.org/getting_started.html . At 6.2(Adding a link) ,i got a error.I Open app/views/home/ index.html.erb and modify it as follows: Hello, Rails! <%= link_to "My Blog", posts_path %> Now started server ,and when i click on "My b

[Rails] Re: How to connect a form to database ?

2011-04-22 Thread amrit pal pathak
On Apr 22, 12:48 pm, Colin Law wrote: > On 22 April 2011 17:41, amrit pal pathak wrote: > > > ... > >        During scaffold,i got a error.Should i discuss that here or > > somewhere else ?? > > Start a new thread with an appropriate subject.  Post the comm

[Rails] Re: How to connect a form to database ?

2011-04-22 Thread amrit pal pathak
On Apr 22, 12:27 pm, Bryan Crossland wrote: > On Fri, Apr 22, 2011 at 11:00 AM, amrit pal pathak < > > > > > > > > > > amritpalpath...@gmail.com> wrote: > > > On Apr 22, 10:40 am, Bryan Crossland wrote: > > > On Fri, Apr 22, 2011 at

[Rails] Re: How to connect a form to database ?

2011-04-22 Thread amrit pal pathak
On Apr 22, 10:40 am, Bryan Crossland wrote: > On Fri, Apr 22, 2011 at 8:23 AM, amrit pal pathak > > > > > > > > > > wrote: > > > On Apr 22, 9:13 am, Peter De Berdt wrote: > > > On 22 Apr 2011, at 15:07, amrit pal pathak wrote: > >

[Rails] Re: How to connect a form to database ?

2011-04-22 Thread amrit pal pathak
On Apr 22, 9:13 am, Peter De Berdt wrote: > On 22 Apr 2011, at 15:07, amrit pal pathak wrote: > > > Here i want 2 things as > >  1)   Now i want to create a table and want to connect this form to > > that,so that when i click on submit after filling filelds ,entries >

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

2011-04-22 Thread amrit pal pathak
On Apr 22, 7:58 am, amrit pal pathak wrote: > On Apr 21, 11:54 am, Alex Katebi wrote: > > > Start your rails server with http default port 80: > > rails server -p 80 > > Now example.com should work. > > I don't why people write three pages of information

[Rails] How to connect a form to database ?

2011-04-22 Thread amrit pal pathak
I am very new to ROR.I created a simple form using controller and view as "script/generate controller form myfun" Now i edit myfun.html.erb file inside /app/view/form and added following contents to the file to make a simple form Student Auditorium Management Project First name:

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

2011-04-22 Thread amrit pal pathak
On Apr 21, 11:54 am, Alex Katebi wrote: > Start your rails server with http default port 80: > rails server -p 80 > Now example.com should work. > I don't why people write three pages of information without answering you > anything :) Thank you very much. It helped -- You receive

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

2011-04-21 Thread amrit pal pathak
On Apr 20, 12:55 pm, Walter Lee Davis wrote: > On Apr 20, 2011, at 12:31 PM, amrit pal pathak wrote: > > >> Here you go. Amazing what you find on the Internet these days. > > >>http://tinyurl.com/3bp7nsh > >       It tells to run the app on different ports

[Rails] Re: How to enable production enviornment in RoR 2.3.5

2011-04-21 Thread amrit pal pathak
On Apr 21, 8:40 am, Colin Law wrote: > On 21 April 2011 12:42, amrit pal pathak wrote: > > > ... > > Then i put some entries into form and try to > > check table at back end(mysql) and did > >                              use production > >                

  1   2   >