[LRUG] It begins!

Ed Davey Ed at veryreal.co.uk
Mon Apr 30 04:24:39 PDT 2007


I would be delighted to get a bit of help from an expert.

I would like to improve my Ruby - make it more concise, elegant and
idiomatic and I also have more or less specific Rails topics on my list for
getting to grips with.

On that subject has anyone got any immediate recommedations on handling
money? I've got my prices currently stored as pennies. I have a helper which
formats them nicely in read-only views but I'm not sure what to do on my
admin forms. 

I'm updating a collection of objects with:

Product.update(params[:product].keys, params[:product].values)

Do I reformat the price in the controller? Presumably better in the model? 

With my formatting helper applied the edited objects passing through the
controller look like:

- !map:HashWithIndifferentAccess 
  name: Fresh Russian First Quality Sevruga Caviar
  size: 500g
  brand_id: "9"
  price: "\xC2\xA31,000.01"
  kings_code: "21065"
  live: "1"
  min_quantity: "1"
  category_id: "1"
  description: blank
  format_id: "10"

(BTW regular expressions are on that list of things for me to master!)

Thanks for any help

ED


> -----Original Message-----
> From: chat-bounces at lrug.org [mailto:chat-bounces at lrug.org] On 
> Behalf Of Suw Charman
> Sent: 30 April 2007 11:13
> To: London Ruby Users Group
> Subject: Re: [LRUG] It begins!
> 
> I am totally still interested, yes.
> 
> 1. I would like to be an mentoree. (sounds like a sort of strange
> mythical dragon)
> 2. I'd be a bit more interested in Rails, but I think I also need some
> basic Ruby instruction.
> 
> Suw
> 
> On 4/28/07, Peter Jones <peterbjones at yahoo.com> wrote:
> > Hi All,
> >
> > In order to assess if there is enough demand to
> > justify matching up potential mentors/mentorees at the
> > next LRUG meeting please could people indicate if:
> >
> > 1. They would like to be a mentor, or a mentoree
> > 2. They are more focused on Ruby or Rails.
> >
> > If we do go ahead with this I think it is important
> > that that the mentors get as much out of the
> > experience as possible. Hopefully it will be possible
> > to match them up with people and projects/applications
> > that they will find interesting. First we need to find
> > out how many people want to participate...
> >
> > Peter.
> >
> > --- Murray Steele <murray.steele at gmail.com> wrote:
> >
> > > It doesn't seem to me that we've quite reached a
> > > consensus on what people
> > > actually want from a beginners session.
> > >
> > > The options so far have been:
> > >
> > > 1. Small groups of beginners (new to programming,
> > > new to ruby etc...) going
> > > over some kind of formal tutorials
> > > 2. Small groups of beginners having informal Q&A
> > > type sessions
> > > 3. People bringing code / ideas to the meeting and
> > > getting feedback on these
> > > 4. Using the meeting to arrange pairing up beginners
> > > with mentors for
> > > sessions not part of the LRUG meetings.
> > >
> > > I think that's all the suggestions so far, but I
> > > could be wrong.  Given that
> > > most of these would require some work on the part of
> > > the mentors/group
> > > leaders (e.g. preparing a tutorial) or the beginners
> > > (e.g. background
> > > reading, preparing some code to bring) we should
> > > probably firm up which of
> > > these options we actually want to do.  We can easily
> > > do more than one as
> > > they're not all that different; my separation of
> > > them was a tad arbitrary.
> > >
> > > We'll want to think about how best to run the
> > > meeting too.  Will the
> > > beginner groups need tables, a flip chart, projector
> > > etc...?  Perhaps a
> > > separate room, as there may be another talk or
> > > discussion going on that
> > > would distract from the knowledge sharing.  Note,
> > > I've no idea if Skills
> > > Matter can accommodate this, I'm just thinking out
> > > loud
> > >
> > > Cheers,
> > >
> > > Muz
> > >
> > >
> > > On 18/04/07, Peter Jones <peterbjones at yahoo.com>
> > > wrote:
> > > >
> > > > Actually, what I meant was "What would we need to
> > > do
> > > > to start off a mentoring scheme?" rather than
> > > trying
> > > > to get people to post questions to the list.
> > > >
> > > > If people who would like to be mentored brought
> > > their
> > > > applications/ideas into the next LRUG meeting it
> > > would
> > > > give potential mentors a chance to see what they
> > > were
> > > > doing, and talk to the person, to see if they
> > > would
> > > > like to mentor them. Would that be a good first
> > > step?
> > > >
> > > > I would be happy to compile a list of mentors and
> > > > mentorees(?). We could meet before the main
> > > meeting or
> > > > (probably better) in the pub afterwards to match
> > > > people up.
> > > >
> > > > --- Alex Pounds <alex at alexpounds.com> wrote:
> > > >
> > > > > On Wed, April 18, 2007 12:34 pm, Peter Jones
> > > wrote:
> > > > > > I have always decided against posting
> > > questions on
> > > > > > this list as I don't feel it would be
> > > appropriate.
> > > > > > What would we need to do to start this off?
> > > > >
> > > > > Well, to try and hit both points ("What Rails
> > > stuff
> > > > > would members like to
> > > > > cover?" and "Could someone ask some questions to
> > > the
> > > > > list?") I present a
> > > > > couple of issues I'm looking at in my current
> > > Rails
> > > > > project(s).
> > > > >
> > > > > 1. I want to let people tag stuff in my app.
> > > There
> > > > > are at least 3 tagging
> > > > > solutions out there: acts_as_taggable,
> > > > > acts_as_taggable on steroids, and
> > > > > has_many_polymorphs. Which should I use and why?
> > > > >
> > > > > 2. I want to start letting people upload photos
> > > to
> > > > > the project. What should
> > > > > I use and why?
> > > > >
> > > > >
> > > > > I'm pretty sure I know the answers to these, and
> > > the
> > > > > implementation details
> > > > > are covered in the docs for the relevant parts,
> > > but
> > > > > it might be a good
> > > > > starting point - especially as both of these
> > > things
> > > > > are fairly common parts
> > > > > of websites and don't get any coverage in the
> > > > > beginner's books...
> > > > >
> > > > > --
> > > > > Alex Pounds (Creature)                  .~.
> > > > > http://www.alexpounds.com/
> > > > >                                         /V\
> > > > > http://www.ethicsgirls.com/
> > > > >                                        // \\
> > > > > "Variables won't; Constants aren't"   /(   )\
> > > > >                                        ^`~'^
> > > > >
> > > > > _______________________________________________
> > > > > chat mailing list
> > > > > chat at lrug.org
> > > > > http://lists.lrug.org/listinfo.cgi/chat-lrug.org
> > > > >
> > > >
> > > >
> > > >
> > > >
> > > > __________________________________________________
> > > > Do You Yahoo!?
> > > > Tired of spam?  Yahoo! Mail has the best spam
> > > protection around
> > > > http://mail.yahoo.com
> > > > _______________________________________________
> > > > chat mailing list
> > > > chat at lrug.org
> > > > http://lists.lrug.org/listinfo.cgi/chat-lrug.org
> > > >
> > > > _______________________________________________
> > > chat mailing list
> > > chat at lrug.org
> > > http://lists.lrug.org/listinfo.cgi/chat-lrug.org
> > >
> >
> >
> >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> > _______________________________________________
> > chat mailing list
> > chat at lrug.org
> > http://lists.lrug.org/listinfo.cgi/chat-lrug.org
> >
> 
> 
> -- 
> -----------------------------------------------
> 
> AIM: nefibach
> IRC: #suwcharman on freenode
> Timezone: GMT
> http://chocnvodka.blogware.com/
> http://www.corante.com/strange/
> http://www.suw.org.uk/
> http://www.openrightsgroup.org/
> _______________________________________________
> chat mailing list
> chat at lrug.org
> http://lists.lrug.org/listinfo.cgi/chat-lrug.org
> 




More information about the Chat mailing list