04 Feb '13, 9am

Create a helper for models and views? #rubyonrails #ruby #rails

If I have a method that is useful in both models and in views, where would be the appropriate place to put it? The method in question just takes two dates as strings, tries to parse them and returns all dates in the range between them. It also takes care of the issues when the dates are badly formatted etc etc.. This method is being used in several models (so a simple class method in one model doesn't seem appropriate) and also in some view helpers. So, where does this method belong in rails? -- 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*******. To post to this group, send email to rubyonrails-talk*******. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/zjR_YZs...

Full article: http://www.mentby.com/Group/rubyonrails-talk/create-a-hel...

Tweets

Ruby on Rails by ChrisAlberg

freelancer.com 04 Feb '13, 8am

love talk greater detail design project can samples work site listed please contact convenience best regards juli , thanks...

Hey, it's Sunday and I've got a blog post on di...

tpitale.com 03 Feb '13, 11pm

Dividing Our Views and Templates in Rails 2013-02-03 TL;DR: I created a gem called simplest_view that makes it easy to mov...

@itcork There's a monthly meetup for Ruby/Rails...

rubyireland.com 05 Feb '13, 3pm

There is a small Ruby Ireland group which meets in Cork on the last Wednesday of every month. This has been running since ...

Ruby on Rails web site

1001freelanceprojects.com 09 Feb '13, 5pm

Request for Quote The Challenge Build the minimally viable database (e.g., MySQL, MS SQL, or NoSQL) and stack (e.g., PHP, ...

#Job Finish j-Ruby/Ruby-on-Rails Project by woo...

freelancer.com 05 Feb '13, 5pm

Project Description: Hello, We have an unfinished project written on Ruby on Rails with jRuby. We are looking for a develo...

Just released mail_room to make it easy to rece...

github.com 05 Feb '13, 2am

specs, this is just a (working) proof of concept √ finish code for POSTing to callback with auth √ accept mailbox configur...

#JavaScipt Ruby on Rails specialist. by Gazzava...

freelancer.com 04 Feb '13, 11am

Project Description: More work than we can handle, looking for freelancer to help our ruby programmers out with lots of sm...

Just released mail_room to make it easy to rece...

tpitale.com 05 Feb '13, 2am

Recieve Gmail Email Messages in Rails 2013-02-04 I want to announce the release of mail_room and tell you a little bit abo...

Changes to existing Ruby on Rails site by Izzyt...

freelancer.com 08 Feb '13, 7pm

Project Description: I have an existing site that requires some changes mostly to the CMS to add functionality. Also a few...

#UK [contract] Ruby on Rails Developer at ✔ #jobs

contractjob.net 04 Feb '13, 11am

Spargonet Consulting, an IT Services Organisation with 35 years pedigree, is currently working with a major brand within g...

#softwaredevelopment Ruby on Rails Ubuntu - oDe...

odesk.com 03 Feb '13, 2pm

Ruby on Rails Ubuntu Hourly – More than 6 months - 30+ hrs/week - Posted 8 hours, 15 minutes ago ruby ubuntu Sign up to Ap...

#ruby people (not just Rails) - you need to upg...

rack.github.com 08 Feb '13, 8am

Some Rails users may not be affected (if they only use Rails managed sessions). If users are using the Marshal (default) s...

Développeur ruby on rails anglophone - Casablanca

offres-emploi.ma 05 Feb '13, 10am

(parue le 05/02/2013-09:45) ville : casablanca type de contrat : cdi nombre de postes : 1 société : centre d'appels spécia...

Mobile & Apps Jobs: Ruby-on-Rails at Premier Mo...

web-job.co.uk 02 Feb '13, 2pm

South East England - West London - augmented reality stuff etc. They have embraced Ruby-on-Rails for all the web stuff tha...

Talk To The Shoe! O2 takes upcycling to a whole new level...

Talk To The Shoe! O2 takes upcycling to a whole...

shoesmitten.com 05 Feb '13, 3pm

One UK company O2 has taken upcycling to a whole new level, collaborating with designer Sean Miles to create fully functio...