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 </h1><body> First name: <input type="text" size="30" style="text-align: right" name="firstname" /></br> Last name: <input type="text" size="30" style="text-align: center" name="lastname" /></br> Enter Password: <input type="password" size="30" name="pwd" /></br> Repeat Password: <input type="password" size="30" name="pwd1" /></ br> <input type="submit" value="Submit" /> </body> </html> 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 in database.I am running rails 2.3.5 under deveolpment enviornment. 2) when i click to submit ,it should tell me "Welcome"?Here how to give the address of other form that hold "Welcome" or there is some other mean to do it in RoR. How to do it? Please somebody helpW!! 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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 in database.I am running rails 2.3.5 under deveolpment > enviornment. > > 2) when i click to submit ,it should tell me "Welcome"?Here how to > give the address of other form that hold "Welcome" or there is some > other mean to do it in RoR. > > How to do it? > Please somebody helpW!!http://guides.rubyonrails.org/ Happy reading... the guides will also probably cover your next 100 questions. Best regards Peter De Berdt -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Apr 22, 9:13 am, Peter De Berdt <peter.de.be...-LPO8gxj9N8aZIoH1IeqzKA@public.gmane.org> 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 in database.I am running rails 2.3.5 under deveolpment > > enviornment. > > > 2) when i click to submit ,it should tell me "Welcome"?Here how to > > give the address of other form that hold "Welcome" or there is some > > other mean to do it in RoR. > > > How to do it? > > Please somebody helpW!! > > http://guides.rubyonrails.org/ > > Happy reading... the guides will also probably cover your next 100 > questions.I read it ,it tells to generate a database by "rake db:create" but it was only for scaffold stuff.Here i only generated a individual controller and view(form).Please can you help to do it in this specific case?? 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Fri, Apr 22, 2011 at 8:23 AM, amrit pal pathak <amritpalpathak1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > On Apr 22, 9:13 am, Peter De Berdt <peter.de.be...-LPO8gxj9N8aZIoH1IeqzKA@public.gmane.org> 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 in database.I am running rails 2.3.5 under deveolpment > > > enviornment. > > > > > 2) when i click to submit ,it should tell me "Welcome"?Here how to > > > give the address of other form that hold "Welcome" or there is some > > > other mean to do it in RoR. > > > > > How to do it? > > > Please somebody helpW!! > > > > http://guides.rubyonrails.org/ > > > > Happy reading... the guides will also probably cover your next 100 > > questions. > I read it ,it tells to generate a database by "rake > db:create" but it was only for scaffold stuff.Here i only generated a > individual controller and view(form).Please can you help to do it in > this specific case?? > >Yes, I think I can. I have some step by step instructions on how to connect a view to a controller and to a database through a model. I also have some step by step instructions for settingup and running a Rails app. However, my steps were not written as well as I thought when reviewed by my peers. Instead, they created some even better step by step instructions. Here they are. http://guides.rubyonrails.org/getting_started.html B. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 22 April 2011 15:40, Bryan Crossland <bacrossland-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Fri, Apr 22, 2011 at 8:23 AM, amrit pal pathak > <amritpalpathak1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >> >> On Apr 22, 9:13 am, Peter De Berdt <peter.de.be...-LPO8gxj9N8aZIoH1IeqzKA@public.gmane.org> 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 in database.I am running rails 2.3.5 under deveolpment >> > > enviornment. >> > >> > > 2) when i click to submit ,it should tell me "Welcome"?Here how to >> > > give the address of other form that hold "Welcome" or there is some >> > > other mean to do it in RoR. >> > >> > > How to do it? >> > > Please somebody helpW!! >> > >> > http://guides.rubyonrails.org/ >> > >> > Happy reading... the guides will also probably cover your next 100 >> > questions. >> I read it ,it tells to generate a database by "rake >> db:create" but it was only for scaffold stuff.Here i only generated a >> individual controller and view(form).Please can you help to do it in >> this specific case?? >> > > > Yes, I think I can. I have some step by step instructions on how to connect > a view to a controller and to a database through a model. I also have some > step by step instructions for settingup and running a Rails app. However, my > steps were not written as well as I thought when reviewed by my peers. > Instead, they created some even better step by step instructions. Here they > are. > > http://guides.rubyonrails.org/getting_started.htmlWhen you have worked through that and some of the other guides (I mean work through, trying examples, not just read it) then find a good tutorial (such as railstutorial.org which is free to use online) and work through that also. It may appear that these are not solving your particular problem but you will learn an immense amount and then be able to answer most of your own questions. Once you have done that then you will be embarrassed to look back at your question above. I suggest before you start that you install Rails 3. Rails 2 is no longer supported apart from security fixes. Make sure that the tutorial you use matches the rails version you have installed. Colin -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Apr 22, 10:40 am, Bryan Crossland <bacrossl...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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...-LPO8gxj9N8aZIoH1IeqzKA@public.gmane.org> 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 in database.I am running rails 2.3.5 under deveolpment > > > > enviornment. > > > > > 2) when i click to submit ,it should tell me "Welcome"?Here how to > > > > give the address of other form that hold "Welcome" or there is some > > > > other mean to do it in RoR. > > > > > How to do it? > > > > Please somebody helpW!! > > > >http://guides.rubyonrails.org/ > > > > Happy reading... the guides will also probably cover your next 100 > > > questions. > > I read it ,it tells to generate a database by "rake > > db:create" but it was only for scaffold stuff.Here i only generated a > > individual controller and view(form).Please can you help to do it in > > this specific case?? > > Yes, I think I can. I have some step by step instructions on how to connect > a view to a controller and to a database through a model. I also have some > step by step instructions for settingup and running a Rails app. However, my > steps were not written as well as I thought when reviewed by my peers. > Instead, they created some even better step by step instructions. Here they > are. > > http://guides.rubyonrails.org/getting_started.htmlThats what i have read(scaffold stuff). -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 22 April 2011 17:00, amrit pal pathak <amritpalpathak1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > On Apr 22, 10:40 am, Bryan Crossland <bacrossl...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> On Fri, Apr 22, 2011 at 8:23 AM, amrit pal pathak <amritpalpath...@gmail.com >> ... >> http://guides.rubyonrails.org/getting_started.html > Thats what i have read(scaffold stuff).As I said, work right through that example app and get it going, then make sure you understand all the code the scaffold generated. Then you will see how to modify it to do what you want. The simplest way for beginners is to start with the scaffold. Colin -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Fri, Apr 22, 2011 at 11:00 AM, amrit pal pathak < amritpalpathak1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > On Apr 22, 10:40 am, Bryan Crossland <bacrossl...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > On Fri, Apr 22, 2011 at 8:23 AM, amrit pal pathak < > amritpalpath...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > > > > > > > > > > > > > > > > > > > > > wrote: > > > > > On Apr 22, 9:13 am, Peter De Berdt <peter.de.be...-LPO8gxj9N8aZIoH1IeqzKA@public.gmane.org> 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 in database.I am running rails 2.3.5 under deveolpment > > > > > enviornment. > > > > > > > 2) when i click to submit ,it should tell me "Welcome"?Here how to > > > > > give the address of other form that hold "Welcome" or there is some > > > > > other mean to do it in RoR. > > > > > > > How to do it? > > > > > Please somebody helpW!! > > > > > >http://guides.rubyonrails.org/ > > > > > > Happy reading... the guides will also probably cover your next 100 > > > > questions. > > > I read it ,it tells to generate a database by "rake > > > db:create" but it was only for scaffold stuff.Here i only generated a > > > individual controller and view(form).Please can you help to do it in > > > this specific case?? > > > > Yes, I think I can. I have some step by step instructions on how to > connect > > a view to a controller and to a database through a model. I also have > some > > step by step instructions for settingup and running a Rails app. However, > my > > steps were not written as well as I thought when reviewed by my peers. > > Instead, they created some even better step by step instructions. Here > they > > are. > > > > http://guides.rubyonrails.org/getting_started.html > Thats what i have read(scaffold stuff). > >Read the entire document starting with section 1. Since you skipped to "Section 5 Getting Started Quickly With Scaffolding" you skipped the very important sections 1-4 which discuss setting up a Rails App and Configuring your database for you to connect to. B. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Apr 22, 12:27 pm, Bryan Crossland <bacrossl...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Fri, Apr 22, 2011 at 11:00 AM, amrit pal pathak < > > > > > > > > > > amritpalpath...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > On Apr 22, 10:40 am, Bryan Crossland <bacrossl...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > On Fri, Apr 22, 2011 at 8:23 AM, amrit pal pathak < > > amritpalpath...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org > > > > > wrote: > > > > > On Apr 22, 9:13 am, Peter De Berdt <peter.de.be...-LPO8gxj9N8aZIoH1IeqzKA@public.gmane.org> 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 in database.I am running rails 2.3.5 under deveolpment > > > > > > enviornment. > > > > > > > 2) when i click to submit ,it should tell me "Welcome"?Here how to > > > > > > give the address of other form that hold "Welcome" or there is some > > > > > > other mean to do it in RoR. > > > > > > > How to do it? > > > > > > Please somebody helpW!! > > > > > >http://guides.rubyonrails.org/ > > > > > > Happy reading... the guides will also probably cover your next 100 > > > > > questions. > > > > I read it ,it tells to generate a database by "rake > > > > db:create" but it was only for scaffold stuff.Here i only generated a > > > > individual controller and view(form).Please can you help to do it in > > > > this specific case?? > > > > Yes, I think I can. I have some step by step instructions on how to > > connect > > > a view to a controller and to a database through a model. I also have > > some > > > step by step instructions for settingup and running a Rails app. However, > > my > > > steps were not written as well as I thought when reviewed by my peers. > > > Instead, they created some even better step by step instructions. Here > > they > > > are. > > > >http://guides.rubyonrails.org/getting_started.html > > Thats what i have read(scaffold stuff). > > Read the entire document starting with section 1. Since you skipped to > "Section 5 Getting Started Quickly With Scaffolding" you skipped the very > important sections 1-4 which discuss setting up a Rails App and Configuring > your database for you to connect to.During scaffold,i got a error.Should i discuss that here or somewhere else ?? Thanks for support -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 22 April 2011 17:41, amrit pal pathak <amritpalpathak1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 command you are entering and the complete error message and stack trace if there is one. Tell us the Rails version and which Operating System you are using. Colin -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Apr 22, 12:48 pm, Colin Law <clan...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> On 22 April 2011 17:41, amrit pal pathak <amritpalpath...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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 command you > are entering and the complete error message and stack trace if there > is one. Tell us the Rails version and which Operating System you are > using. >OK -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.