> Technologies Strategy - From Idea to Mobile App RealityVinova Our team will brainstorm with you on where to begin, where to go, and how to get you there. Whether you have a spark of an idea or an existing app – we can help. Getting your mobile strategy right is what our unique services are all about. We’ll wrestle with business challenges, discover new opportunities that will help you define and refine your product ideas into mobile app reality.

Ruby underscore and classify methods

These are two Rails helpers that could be very useful when injecting new instance methods in a class.

underscore

Converts from a class name to a underscore attribute.

‘MyClassName’.underscore => my_class_name

classify

Inverse method from underscore.

>> “cool_articles”.classify
=> “CoolArticles”

>> “comment”.classify
=> “Comment”

Both, combined with singularize and pluralize, allows us to handle parent/child methods in a very handy way. For example:

elements_in_ = self.send(parent).send(self.class.to_s.pluralize.underscore)

or things like

Kernel.const_get(table_model.to_s.classify).find(:all) #Kernel.const_get gets an string and retrieves the class.

source: http://yarorb.wordpress.com/2008/05/06/underscore-and-classify/

Malcare WordPress Security

web development company singapore,singapore web development,website developer singapore,ios app development singapore,ruby on rails developer singapore,web design services singapore,mobile apps singapore,developer in singapore,singapore web design,website development singapore,graphic designer in singapore,singapore mobile app developer,singapore app developer,app development singapore,mobile application developer singapore,web design singapore,design firms in singapore,singapore mobile application developer,web designer singapore,web application singapore,web design company singapore,android developer singapore,website designer singapore,mobile apps development singapore,mobile app development singapore,website design singapore,ios developer singapore,app developer singapore,mobile app developer singapore,web development singapore,mobile game developer singapore,developers in singapore,singapore website design,design agency singapore,singapore web design services,mobile application development singapore,mobile developer singapore