Re: [Rails] Career

2012-07-27 Thread Amrit Pal Pathak
On Fri, Jul 27, 2012 at 10:15 AM, Amardeep Singh er.amar1...@gmail.com 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

Re: [Rails] Career

2012-07-27 Thread Amrit Pal Pathak
On Fri, Jul 27, 2012 at 1:13 PM, Amardeep Singh er.amar1...@gmail.com 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

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 er.amar1...@gmail.com 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

[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

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 clan...@googlemail.com wrote: On 13 February 2012 13:58, Amrit Pal Pathak amritpalpath...@gmail.com wrote: 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

[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

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 jquari...@gmail.com wrote: On Sun, Feb 12, 2012 at 9:04 AM, Amrit Pal Pathak amritpalpath...@gmail.com wrote: How to enlarge a thumnail ,when somebody click on it in ruby on rails ?? is there any gem for it? please help . If I'm not wrong

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 cifani.thi...@gmail.com 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

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 rbri...@gmail.com 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

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 jquari...@gmail.com wrote: On Sun, Feb 12, 2012 at 10:24 AM, Amrit Pal Pathak amritpalpath...@gmail.com wrote: On Sun, Feb 12, 2012 at 8:48 PM, radhames brito rbri...@gmail.com wrote: Your question is not rails related since that is done via

[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 -Ilib:test /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb test/functional/main_controller_test.rb

[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

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 vishal.singh...@gmail.comwrote: 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?

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

2011-09-11 Thread Amrit Pal Pathak
On Sun, Sep 11, 2011 at 1:43 AM, Robert Walker li...@ruby-forum.com 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

[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

[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

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 hassan.schroe...@gmail.com wrote: On Fri, Jul 8, 2011 at 10:25 PM, Amrit Pal Pathak amritpalpath...@gmail.com wrote: Which is the best way in rails for making a social networking site.? BDD :-) I meant is there any good cms or gem

Re: [Rails] Social Network

2011-07-08 Thread Amrit Pal Pathak
On Fri, Jul 8, 2011 at 4:56 PM, web two web2id...@yahoo.com 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

[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

[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

Re: [Rails] ruby script/server giving error

2011-07-05 Thread Amrit Pal Pathak
On Tue, Jul 5, 2011 at 2:15 AM, rajeevsharma86 rajeevsharm...@gmail.comwrote: 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

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

2011-07-04 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 =

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

2011-07-04 Thread Amrit Pal Pathak
On Mon, Jul 4, 2011 at 2:08 AM, Amrit Pal Pathak amritpalpath...@gmail.comwrote: 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

[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 amritpalpath...@gmail.comwrote: 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/rdoctask is deprecated. Use rdoc/task instead

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 chirag.sing...@gmail.comwrote: 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

[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

Re: [Rails] Social Networking

2011-07-03 Thread Amrit Pal Pathak
On Fri, Jun 24, 2011 at 1:52 PM, exelstu...@gmail.com exelstu...@gmail.comwrote: 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

[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

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 rajeevsharm...@gmail.comwrote: 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 --

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 conra...@gmail.com 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 thanks in advance amritpalpathakgne.wordpress.com

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 conra...@gmail.com 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 conra...@gmail.com wrote: On Sat, Jul 2, 2011 at 12:28 AM, Amrit Pal Pathak

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 conra...@gmail.com 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 conra...@gmail.com wrote: On Sat, Jul 2, 2011 at 2:50 AM, Amrit Pal Pathak

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 conra...@gmail.com 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 conra...@gmail.comwrote: On Sat, Jul 2, 2011 at 7:10 AM, Amrit Pal Pathak

[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 peter.de.be...@pandora.be 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 = Rails 2.3.8 application starting onhttp://0.0.0.0

[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_backlog':

[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

[Rails] Re: uninitialized constant PostsController::Post

2011-05-01 Thread amrit pal pathak
On May 1, 5:11 am, John shelfer johnsshel...@gmail.com wrote: On May 1, 4:12 am, Colin Law clan...@googlemail.com wrote: On 1 May 2011 05:52, amrit pal pathak amritpalpath...@gmail.com wrote: ... Showing /home/amrit/final/app/views/posts/index.html.erb where line #4 raised

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

[Rails] Re: uninitialized constant PostsController::Post

2011-04-30 Thread amrit pal pathak
On Apr 30, 12:08 pm, Colin Law clan...@googlemail.com wrote: On 30 April 2011 16:40, amrit pal pathak amritpalpath...@gmail.com 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

[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

[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 hassan.schroe...@gmail.com wrote: On Fri, Apr 29, 2011 at 8:08 AM, amrit pal pathak amritpalpath...@gmail.com wrote: I have one controller(home) with two methods(empty) ,name are index,new).Corressponding have 2 .html.erb files in home view.How

[Rails] Re: Routing Error

2011-04-28 Thread amrit pal pathak
On Apr 28, 3:25 am, Colin Law clan...@googlemail.com wrote: On 28 April 2011 02:37, amrit pal pathak amritpalpath...@gmail.com wrote: On Apr 27, 10:52 am, Pale Horse li...@ruby-forum.com wrote: amritpal p. wrote in post #995323: class SayController ApplicationController

[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.down

[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.down

[Rails] Re: Migration error

2011-04-28 Thread amrit pal pathak
On Apr 28, 10:47 am, Pale Horse li...@ruby-forum.com 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

[Rails] Re: Migration error

2011-04-28 Thread amrit pal pathak
On Apr 28, 12:49 pm, Colin Law clan...@googlemail.com wrote: On 28 April 2011 15:47, Pale Horse li...@ruby-forum.com 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

[Rails] Re: NoMethodError in Book

2011-04-27 Thread amrit pal pathak
On Apr 26, 8:35 am, amrit pal pathak amritpalpath...@gmail.com wrote: On Apr 26, 7:53 am, Frederick Cheung frederick.che...@gmail.com wrote: On 26 Apr 2011, at 12:28, amrit pal pathak amritpalpath...@gmail.com wrote: On Apr 26, 5:55 am, Frederick Cheung frederick.che

[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% a href=/say/goodbyeGoodbye/a

[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

[Rails] Re: Routing Error

2011-04-27 Thread amrit pal pathak
On Apr 27, 10:52 am, Pale Horse li...@ruby-forum.com 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 % a

[Rails] Re: NoMethodError in Book

2011-04-27 Thread amrit pal pathak
On Apr 26, 8:35 am, amrit pal pathak amritpalpath...@gmail.com wrote: On Apr 26, 7:53 am, Frederick Cheung frederick.che...@gmail.com wrote: On 26 Apr 2011, at 12:28, amrit pal pathak amritpalpath...@gmail.com wrote: On Apr 26, 5:55 am, Frederick Cheung frederick.che

[Rails] Re: NoMethodError in Book

2011-04-26 Thread amrit pal pathak
On Apr 25, 11:59 am, Colin Law clan...@googlemail.com wrote: On 25 April 2011 16:50, amrit pal pathak amritpalpath...@gmail.com wrote: On Apr 25, 9:37 am, Tim Shaffer timshaf...@me.com wrote: Actually it looks like you're not defining it in the example you provided. Your controller

[Rails] Re: NoMethodError in Book

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

[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:30 am, amrit pal pathak amritpalpath...@gmail.com 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/_form.html.erb

[Rails] Re: NoMethodError in Book

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

[Rails] Re: NoMethodError in Book

2011-04-26 Thread amrit pal pathak
On Apr 26, 4:46 am, Michael Pavling pavl...@gmail.com wrote: On 26 April 2011 09:15, Colin Law clan...@googlemail.com 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

[Rails] Re: NoMethodError in Book

2011-04-26 Thread amrit pal pathak
On Apr 26, 5:09 am, Colin Law clan...@googlemail.com wrote: On 26 April 2011 09:59, amrit pal pathak amritpalpath...@gmail.com wrote: On Apr 26, 4:44 am, Colin Law clan...@googlemail.com wrote: On 26 April 2011 09:41, amrit pal pathak amritpalpath...@gmail.com wrote: On Apr

[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 html head titleHello, Rails!/title /head body h1Hello from

[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 html head titleHello, Rails!/title /head body h1Hello from

[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] Re: NoMethodError in Book

2011-04-26 Thread amrit pal pathak
On Apr 26, 5:55 am, Frederick Cheung frederick.che...@gmail.com wrote: On Apr 26, 10:21 am, amrit pal pathak amritpalpath...@gmail.com wrote:                              is it saying @book variablei is nil?    it is defined in controller as :  class BookController

[Rails] Re: Routing Error

2011-04-26 Thread amrit pal pathak
On Apr 26, 7:54 am, Frederick Cheung frederick.che...@gmail.com wrote: On 26 Apr 2011, at 10:51, amrit pal pathak amritpalpath...@gmail.com 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

[Rails] Re: NoMethodError in Book

2011-04-26 Thread amrit pal pathak
On Apr 26, 7:52 am, Ar Chron li...@ruby-forum.com 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

[Rails] Re: NoMethodError in Book

2011-04-26 Thread amrit pal pathak
On Apr 26, 7:53 am, Frederick Cheung frederick.che...@gmail.com wrote: On 26 Apr 2011, at 12:28, amrit pal pathak amritpalpath...@gmail.com wrote: On Apr 26, 5:55 am, Frederick Cheung frederick.che...@gmail.com wrote: On Apr 26, 10:21 am, amrit pal pathak amritpalpath

[Rails] Re: Routing Error

2011-04-26 Thread amrit pal pathak
On Apr 26, 8:31 am, Colin Law clan...@googlemail.com wrote: On 26 April 2011 13:22, amrit pal pathak amritpalpath...@gmail.com wrote: On Apr 26, 7:54 am, Frederick Cheung frederick.che...@gmail.com wrote: On 26 Apr 2011, at 10:51, amrit pal pathak amritpalpath...@gmail.com wrote

[Rails] Re: Routing Error

2011-04-26 Thread amrit pal pathak
On Apr 26, 9:26 am, Pale Horse li...@ruby-forum.com 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 to

[Rails] Re: Routing Error

2011-04-26 Thread amrit pal pathak
On Apr 26, 10:01 am, Pale Horse li...@ruby-forum.com wrote: amritpal p. wrote in post #995108: On Apr 26, 9:26am, Pale Horse li...@ruby-forum.com wrote: the root route to take effect. it helped but without deleting that file and setting routing path to say controller

[Rails] Re: Routing Error

2011-04-26 Thread amrit pal pathak
On Apr 26, 12:09 pm, Pale Horse li...@ruby-forum.com 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

[Rails] Re: Could not generate a form

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

[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? % div

[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? % div

[Rails] Re: NoMethodError in Book

2011-04-25 Thread amrit pal pathak
On Apr 25, 9:01 am, Tim Shaffer timshaf...@me.com 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

[Rails] Re: NoMethodError in Book

2011-04-25 Thread amrit pal pathak
On Apr 25, 9:37 am, Tim Shaffer timshaf...@me.com 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?

[Rails] Re: How to connect two controllers ?

2011-04-24 Thread amrit pal pathak
On Apr 24, 2:52 am, Colin Law clan...@googlemail.com wrote: On 24 April 2011 06:45, amrit pal pathak amritpalpath...@gmail.com wrote: On Apr 23, 12:11 pm, Frederick Cheung frederick.che...@gmail.com wrote: On Apr 23, 5:04 pm, amrit pal pathak amritpalpath...@gmail.com wrote

[Rails] Could not generate a form

2011-04-24 Thread amrit pal pathak
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@googlegroups.com. To unsubscribe from this group, send email to rubyonrails

[Rails] Could not generate a form

2011-04-24 Thread amrit pal pathak
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@googlegroups.com. To unsubscribe from this group, send email to rubyonrails

[Rails] Could not generate a form

2011-04-24 Thread amrit pal pathak
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@googlegroups.com. To unsubscribe from this group, send email to rubyonrails

[Rails] Re: Could not generate a form

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

[Rails] Re: Could not generate a form

2011-04-24 Thread amrit pal pathak
On Apr 24, 8:36 am, Colin Law clan...@googlemail.com wrote: On 24 April 2011 13:23, amrit pal pathak amritpalpath...@gmail.com wrote: On Apr 24, 7:25 am, Colin Law clan...@googlemail.com wrote: On 24 April 2011 10:28, amrit pal pathak amritpalpath...@gmail.com wrote: I

[Rails] Re: Could not generate a form

2011-04-24 Thread amrit pal pathak
On Apr 24, 12:22 pm, amrit pal pathak amritpalpath...@gmail.com wrote: On Apr 24, 8:36 am, Colin Law clan...@googlemail.com wrote: On 24 April 2011 13:23, amrit pal pathak amritpalpath...@gmail.com wrote: On Apr 24, 7:25 am, Colin Law clan...@googlemail.com wrote: On 24 April

[Rails] How to add a link ?

2011-04-23 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: h1Hello, Rails!/h1 %= link_to My Blog, posts_path % Now started server ,and when i click on My

[Rails] How to add a link ?

2011-04-23 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: h1Hello, Rails!/h1 %= link_to My Blog, posts_path % Now started server ,and when i click on My

[Rails] How to add a link ?

2011-04-23 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: h1Hello, Rails!/h1 %= link_to My Blog, posts_path % Now started server ,and when i click on My

[Rails] Re: How to add a link ?

2011-04-23 Thread amrit pal pathak
On Apr 23, 2:20 am, Carina Brito carina...@gmail.com 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,

[Rails] Help to understand scaffold's code!

2011-04-23 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 h1Listing posts/h1 table

[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 h1Hello/h1 %=link_to 'Submit'% I created a another controller using script/generate controller click fun.Edited the

[Rails] Re: How to connect two controllers ?

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

[Rails] Re: How to connect two controllers ?

2011-04-23 Thread amrit pal pathak
On Apr 23, 10:11 am, Colin Law clan...@googlemail.com wrote: On 23 April 2011 13:40, amrit pal pathak amritpalpath...@gmail.com wrote: On Apr 23, 8:26 am, Colin Law clan...@googlemail.com wrote: On 23 April 2011 13:18, amrit pal pathak amritpalpath...@gmail.com wrote: I

[Rails] Re: How to connect two controllers ?

2011-04-23 Thread amrit pal pathak
On Apr 23, 11:58 am, Colin Law clan...@googlemail.com wrote: On 23 April 2011 16:48, amrit pal pathak amritpalpath...@gmail.com wrote: ...           Now i gave plural ,again error    h1Hello/h1   %=link_to 'Submit',clicks_path % Error is undefined local variable or method

[Rails] Re: How to connect two controllers ?

2011-04-23 Thread amrit pal pathak
On Apr 23, 12:11 pm, Frederick Cheung frederick.che...@gmail.com wrote: On Apr 23, 5:04 pm, amrit pal pathak amritpalpath...@gmail.com wrote: On Apr 23, 11:58 am, Colin Law clan...@googlemail.com wrote: On 23 April 2011 16:48, amrit pal pathak amritpalpath...@gmail.com wrote

[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 alex.kat...@gmail.com 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

[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 html h1 Student Auditorium Management Project /h1body

[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 amritpalpath...@gmail.com wrote: On Apr 21, 11:54 am, Alex Katebi alex.kat...@gmail.com 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] Re: How to connect a form to database ?

2011-04-22 Thread amrit pal pathak
On Apr 22, 9:13 am, Peter De Berdt peter.de.be...@pandora.be 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 should go

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

2011-04-22 Thread amrit pal pathak
On Apr 22, 10:40 am, Bryan Crossland bacrossl...@gmail.com wrote: On Fri, Apr 22, 2011 at 8:23 AM, amrit pal pathak amritpalpath...@gmail.com wrote: On Apr 22, 9:13 am, Peter De Berdt peter.de.be...@pandora.be wrote: On 22 Apr 2011, at 15:07, amrit pal pathak wrote: Here i

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

2011-04-22 Thread amrit pal pathak
On Apr 22, 12:27 pm, Bryan Crossland bacrossl...@gmail.com 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 bacrossl...@gmail.com wrote: On Fri, Apr 22, 2011 at 8:23 AM, amrit pal pathak

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

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

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

2011-04-21 Thread amrit pal pathak
On Apr 20, 12:36 pm, Colin Law clan...@googlemail.com wrote: On 20 April 2011 17:21, amritpal pathak amritpalpath...@gmail.com wrote: I want to enable production enviornment for my appication.The  content of database.yml file is as  # SQLite version 3.x #   gem install

[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 clan...@googlemail.com wrote: On 21 April 2011 12:42, amrit pal pathak amritpalpath...@gmail.com wrote: ... Then i put some entries into form and try to check table at back end(mysql) and did                              use production

  1   2   >