Hello Newbie to rails ..... When I use logic .. rails generate scaffold Test name:string date:date etc the default layout puts boxes top down. name: date: etc How can I change the position of these boxes should I want to? - what if I want date field 2cm to the right or left Regards -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
On 3 May 2013 11:49, philip sivyer <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Hello > Newbie to rails ..... > When I use logic .. rails generate scaffold Test name:string date:date > etc > the default layout puts boxes top down. > > name: > date: > etc > How can I change the position of these boxes should I want to? - what if > I want date field 2cm to the right or leftI suggest working right through a good tutorial such as railstutorial.org (which is free to use online). That will show you the basics of Rails. To answer your question however you just have to edit the erb files in app/views/tests. You may have to provide appropriate CSS also of course. But do the tutorial first. Note however that it is not a good idea to have a model called Test, I think you may run into problems with test being a reserved word. Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
Colin Law wrote in post #1107648:> On 3 May 2013 11:49, philip sivyer <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: >> I want date field 2cm to the right or left > I suggest working right through a good tutorial such as > railstutorial.org (which is free to use online). That will show you > the basics of Rails. > > To answer your question however you just have to edit the erb files in > app/views/tests. You may have to provide appropriate CSS also of > course. But do the tutorial first. > > Note however that it is not a good idea to have a model called Test, I > think you may run into problems with test being a reserved word. > > ColinThanks for the reply Would you have an example of syntax as to say move field to the right? Regards -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
On 3 May 2013 12:26, philip sivyer <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Colin Law wrote in post #1107648: >> On 3 May 2013 11:49, philip sivyer <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: >>> I want date field 2cm to the right or left >> I suggest working right through a good tutorial such as >> railstutorial.org (which is free to use online). That will show you >> the basics of Rails. >> >> To answer your question however you just have to edit the erb files in >> app/views/tests. You may have to provide appropriate CSS also of >> course. But do the tutorial first. >> >> Note however that it is not a good idea to have a model called Test, I >> think you may run into problems with test being a reserved word. >> >> Colin > > Thanks for the reply > Would you have an example of syntax as to say move field to the right?Really, do the tutorial first. Otherwise you will later look back on these questions and be embarrassed. Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
Colin Law wrote in post #1107662:> On 3 May 2013 12:26, philip sivyer <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: >>> >>> Note however that it is not a good idea to have a model called Test, I >>> think you may run into problems with test being a reserved word. >>> >>> Colin >> >> Thanks for the reply >> Would you have an example of syntax as to say move field to the right? > > Really, do the tutorial first. Otherwise you will later look back on > these questions and be embarrassed. > > ColinOK - Thanks -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.