jleake-xLhkCMTzzpz10XsdtD+oqA@public.gmane.org
2013-Mar-18 19:32 UTC
Rails 4.0 Example app
Hi All, I have 30 years as a self employed software engineer and have been experimenting with rails for several years but !! I would have made considerably more progress and been able to give back to the community if only there was a demo application that was released with each new rails release. I am sure that it would take no more than 15 minutes of someone within the core team to produce an app that provides just the basic of use cases: 1. Edit of multi-level nested attributes in a single form. 2. Edit several models on the same form. 3. Edit multiple records from a single model on the same form. 4. Basic authentication. 5. Digest authentication. What do *you* think ? P.S. On ubuntu using rvm Ruby 2.0 and Rails 4.0.0.beta1 and Ruby Mine 5.0.2 the installation of each went without any problems. I just cannot find how to implement the simple examples listed above with Rails 4. -- 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 To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/z_GFlbTlatAJ. For more options, visit https://groups.google.com/groups/opt_out.
Have you tried http://railscasts.com He covers many of the things you asked about in various episodes. On Mar 18, 2013, at 3:32 PM, jleake-xLhkCMTzzpz10XsdtD+oqA@public.gmane.org wrote:> Hi All, > I have 30 years as a self employed software engineer and have been experimenting with rails for several years but !! > > I would have made considerably more progress and been able to give back to the community if only there was a demo application that was released with each new rails release. > > I am sure that it would take no more than 15 minutes of someone within the core team to produce an app that provides just the basic of use cases: > > Edit of multi-level nested attributes in a single form. > Edit several models on the same form. > Edit multiple records from a single model on the same form. > Basic authentication. > Digest authentication. > What do you think ? > > P.S. On ubuntu using rvm Ruby 2.0 and Rails 4.0.0.beta1 and Ruby Mine 5.0.2 the installation of each went without any problems. I just cannot find how to implement the simple examples listed above with Rails 4. > > > -- > 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 > To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/z_GFlbTlatAJ. > For more options, visit https://groups.google.com/groups/opt_out. > >-- 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.
jleake-xLhkCMTzzpz10XsdtD+oqA@public.gmane.org
2013-Mar-20 11:35 UTC
Re: Rails 4.0 Example app
Thank you for the suggestion, yes of course I would have given up years ago without RBs fantastically clear material. However edit multiple does not work on multi-level nested attributes. Yet edit a single multi-level nested attribute (using update_attributes) works fine. My main point is that of newcomer accessibility. TDD may make a development more agile but there is nothing better than an example app that exercises all the simple/minimum/core functionality and use-cases. Just how long do you think it would take a true expert involved in edge rails development to write a small app ? I suspect that it does''nt exist because it is too hard to do. Another point is that an example app is like a picture being worth a thousand words. It proceeds the documentation lag and displays a best practice approach that is clearly comprehensible by a much broader ability level. I would gladly write one and give it back to the community if I could get it all to work and if I was sure that my approach was in line with the current version of rails best practice. An example app should execute without error and be a minimum requirement before a new release is issued. This is another example where TDD has pushed out verifying the basic use-case requirements. Sorry if this sounds like a rant but I am almost at the end of my tether after giving up on rails 2.x, starting again on 3, and again on 3.2 and now on 4.0.0.beta1. Rails is becoming so agile that you are lucky to complete an application before the next version is released. Just one last time - can anyone knock out a simple app displaying core use-cases I have highlighted ? On Monday, 18 March 2013 19:32:57 UTC, jle...-xLhkCMTzzpz10XsdtD+oqA@public.gmane.org wrote:> > Hi All, > I have 30 years as a self employed software engineer and have been > experimenting with rails for several years but !! > > I would have made considerably more progress and been able to give back to > the community if only there was a demo application that was released with > each new rails release. > > I am sure that it would take no more than 15 minutes of someone within the > core team to produce an app that provides just the basic of use cases: > > > 1. Edit of multi-level nested attributes in a single form. > 2. Edit several models on the same form. > 3. Edit multiple records from a single model on the same form. > 4. Basic authentication. > 5. Digest authentication. > > What do *you* think ? > > P.S. On ubuntu using rvm Ruby 2.0 and Rails 4.0.0.beta1 and Ruby Mine > 5.0.2 the installation of each went without any problems. I just cannot > find how to implement the simple examples listed above with Rails 4. > >-- 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 To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/2MHp73ESuvAJ. For more options, visit https://groups.google.com/groups/opt_out.
On Wed, Mar 20, 2013 at 6:35 AM, <jleake-xLhkCMTzzpz10XsdtD+oqA@public.gmane.org> wrote:> Thank you for the suggestion, yes of course I would have given up years ago > without RBs fantastically clear material. > > However edit multiple does not work on multi-level nested attributes. Yet > edit a single multi-level nested attribute (using update_attributes) works > fine. > > My main point is that of newcomer accessibility. TDD may make a development > more agile but there is nothing better than an example app that exercises > all the simple/minimum/core functionality and use-cases. > > Just how long do you think it would take a true expert involved in edge > rails development to write a small app ? > > I suspect that it does''nt exist because it is too hard to do. > > Another point is that an example app is like a picture being worth a > thousand words. It proceeds the documentation lag and displays a best > practice approach that is clearly comprehensible by a much broader ability > level. > > I would gladly write one and give it back to the community if I could get it > all to work and if I was sure that my approach was in line with the current > version of rails best practice. > > An example app should execute without error and be a minimum requirement > before a new release is issued. This is another example where TDD has > pushed out verifying the basic use-case requirements. > > Sorry if this sounds like a rant but I am almost at the end of my tether > after giving up on rails 2.x, starting again on 3, and again on 3.2 and now > on 4.0.0.beta1. Rails is becoming so agile that you are lucky to complete > an application before the next version is released. > > Just one last time - can anyone knock out a simple app displaying core > use-cases I have highlighted ? > > > On Monday, 18 March 2013 19:32:57 UTC, jle...-xLhkCMTzzpz10XsdtD+oqA@public.gmane.org wrote: >> >> Hi All, >> I have 30 years as a self employed software engineer and have been >> experimenting with rails for several years but !! >> >> I would have made considerably more progress and been able to give back to >> the community if only there was a demo application that was released with >> each new rails release. >> >> I am sure that it would take no more than 15 minutes of someone within the >> core team to produce an app that provides just the basic of use cases: >> >> Edit of multi-level nested attributes in a single form. >> Edit several models on the same form. >> Edit multiple records from a single model on the same form. >> Basic authentication. >> Digest authentication. >> >> What do you think ? >> >> P.S. On ubuntu using rvm Ruby 2.0 and Rails 4.0.0.beta1 and Ruby Mine >> 5.0.2 the installation of each went without any problems. I just cannot >> find how to implement the simple examples listed above with Rails 4. >> > -- > 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 > To view this discussion on the web visit > https://groups.google.com/d/msg/rubyonrails-talk/-/2MHp73ESuvAJ. > > For more options, visit https://groups.google.com/groups/opt_out. > >Sounds like it could be helpful. Go for it! -- 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.
jleake-xLhkCMTzzpz10XsdtD+oqA@public.gmane.org
2013-Mar-22 00:20 UTC
Rails 4.0 Example app - fields_for
So I have a rails 3.2.11 Example app that exhibits some simple core use cases and I am starting again under rails 4.0.0.beta1 ** <div> <h2><%= f.label r %></h2> <%= f.fields_for :interactions, s.initialized_interactions() do |builder| %> <% role = builder.object.role %> <%= builder.hidden_field :role_id %> <div class="field"> <%= builder.check_box :enable %> <%= builder.label :enable, role.name %> </div> <% end %> </div> So the above renders OK for 3.2 but under rails 4.0 ''builder.object'' is an array of role objects and of course it fails. Any ideas ? On Monday, 18 March 2013 19:32:57 UTC, jle...-xLhkCMTzzpz10XsdtD+oqA@public.gmane.org wrote:> > Hi All, > I have 30 years as a self employed software engineer and have been > experimenting with rails for several years but !! > > I would have made considerably more progress and been able to give back to > the community if only there was a demo application that was released with > each new rails release. > > I am sure that it would take no more than 15 minutes of someone within the > core team to produce an app that provides just the basic of use cases: > > > 1. Edit of multi-level nested attributes in a single form. > 2. Edit several models on the same form. > 3. Edit multiple records from a single model on the same form. > 4. Basic authentication. > 5. Digest authentication. > > What do *you* think ? > > P.S. On ubuntu using rvm Ruby 2.0 and Rails 4.0.0.beta1 and Ruby Mine > 5.0.2 the installation of each went without any problems. I just cannot > find how to implement the simple examples listed above with Rails 4. > >-- 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 To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/X9pnA-5-4awJ. For more options, visit https://groups.google.com/groups/opt_out.
On Friday, March 22, 2013 2:20:09 AM UTC+2, jle...-xLhkCMTzzpz10XsdtD+oqA@public.gmane.org wrote:> > So I have a rails 3.2.11 Example app that exhibits some simple core use > cases and I am starting again under rails 4.0.0.beta1 > > ** <div> > <h2><%= f.label r %></h2> > <%= f.fields_for :interactions, s.initialized_interactions() do > |builder| %> > <% role = builder.object.role %> > <%= builder.hidden_field :role_id %> > > <div class="field"> > <%= builder.check_box :enable %> > <%= builder.label :enable, role.name %> > </div> > <% end %> > </div> > > So the above renders OK for 3.2 but under rails 4.0 ''builder.object'' is > an array of role objects and of course it fails. > > Any ideas ? > > Have you tried to display builder.object on screen, or in rails console?If you do it both in 3.2 and 4, you should be able to see if there is a difference. -- 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 To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/LaKKMvtRU-sJ. For more options, visit https://groups.google.com/groups/opt_out.
jleake-xLhkCMTzzpz10XsdtD+oqA@public.gmane.org
2013-Mar-24 11:12 UTC
Re: Rails 4.0 Example app
Yes I have, for some reason the builder object is an array under rails 4.0 and I have not found a way of presenting the view for edit. On Monday, 18 March 2013 19:32:57 UTC, jle...-xLhkCMTzzpz10XsdtD+oqA@public.gmane.org wrote:> > Hi All, > I have 30 years as a self employed software engineer and have been > experimenting with rails for several years but !! > > I would have made considerably more progress and been able to give back to > the community if only there was a demo application that was released with > each new rails release. > > I am sure that it would take no more than 15 minutes of someone within the > core team to produce an app that provides just the basic of use cases: > > > 1. Edit of multi-level nested attributes in a single form. > 2. Edit several models on the same form. > 3. Edit multiple records from a single model on the same form. > 4. Basic authentication. > 5. Digest authentication. > > What do *you* think ? > > P.S. On ubuntu using rvm Ruby 2.0 and Rails 4.0.0.beta1 and Ruby Mine > 5.0.2 the installation of each went without any problems. I just cannot > find how to implement the simple examples listed above with Rails 4. > >-- 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 To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/4nvaJaVcbakJ. For more options, visit https://groups.google.com/groups/opt_out.
On Sunday, March 24, 2013 1:12:35 PM UTC+2, jle...-xLhkCMTzzpz10XsdtD+oqA@public.gmane.org wrote:> > Yes I have, for some reason the builder object is an array under rails 4.0 > and I have not found a way of presenting the view for edit. > > Depends on the array structure. I can only advise that you read the arrayspecs http://ruby-doc.org/core-1.9.3/Array.html (assuming you use 1.9.3). There you shold find methods to display your array elements. - Jussi -- 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 To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/Tdo4DbTw1uEJ. For more options, visit https://groups.google.com/groups/opt_out.
jleake-xLhkCMTzzpz10XsdtD+oqA@public.gmane.org
2013-Mar-24 13:34 UTC
Re: Rails 4.0 Example app
Hi Jussi, Thank you for the suggestion. Ruby 2.0. The problem is that an array is returned whereas rails 3.2 you get an Interaction object. I cannot figure out how to generate hidden fields and check boxes that will be accepted by the update. On Monday, 18 March 2013 19:32:57 UTC, jle...-xLhkCMTzzpz10XsdtD+oqA@public.gmane.org wrote:> > Hi All, > I have 30 years as a self employed software engineer and have been > experimenting with rails for several years but !! > > I would have made considerably more progress and been able to give back to > the community if only there was a demo application that was released with > each new rails release. > > I am sure that it would take no more than 15 minutes of someone within the > core team to produce an app that provides just the basic of use cases: > > > 1. Edit of multi-level nested attributes in a single form. > 2. Edit several models on the same form. > 3. Edit multiple records from a single model on the same form. > 4. Basic authentication. > 5. Digest authentication. > > What do *you* think ? > > P.S. On ubuntu using rvm Ruby 2.0 and Rails 4.0.0.beta1 and Ruby Mine > 5.0.2 the installation of each went without any problems. I just cannot > find how to implement the simple examples listed above with Rails 4. > >-- 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 To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/LTBPswCqE0oJ. For more options, visit https://groups.google.com/groups/opt_out.
jleake-xLhkCMTzzpz10XsdtD+oqA@public.gmane.org
2013-Mar-27 16:24 UTC
Re: Rails 4.0 Example app SOLVED use case 1
Hi All, See https://github.com/ozpos/urps2 - still struggling with use case 2. On Monday, 18 March 2013 19:32:57 UTC, jle...-xLhkCMTzzpz10XsdtD+oqA@public.gmane.org wrote:> > Hi All, > I have 30 years as a self employed software engineer and have been > experimenting with rails for several years but !! > > I would have made considerably more progress and been able to give back to > the community if only there was a demo application that was released with > each new rails release. > > I am sure that it would take no more than 15 minutes of someone within the > core team to produce an app that provides just the basic of use cases: > > > 1. Edit of multi-level nested attributes in a single form. > 2. Edit several models on the same form. > 3. Edit multiple records from a single model on the same form. > 4. Basic authentication. > 5. Digest authentication. > > What do *you* think ? > > P.S. On ubuntu using rvm Ruby 2.0 and Rails 4.0.0.beta1 and Ruby Mine > 5.0.2 the installation of each went without any problems. I just cannot > find how to implement the simple examples listed above with Rails 4. > >-- 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 To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/AyQhgHIocYwJ. For more options, visit https://groups.google.com/groups/opt_out.
Maybe Matching Threads
- Rails 4.0 has_many_through and fields_for
- rails generate scaffold - ERROR
- Installing Ruby 2.0.0-p0 using Rbenv on Ubuntu 12.04.2 LTS
- Ruby 2.0 is running, but Rails 4 doesn't see it.
- Issue with Deploying a Rails app on VPS - cannot load such file -- unicorn/launcher