Cocoapods: How Did I Stop Worrying And Used It
Three years ago, iOS developers created a web project that was very ambitious.. It was called (cocoacontrols.com).
The idea was simple: developers will find controllers that other developers submit there. Controllers that could solve a lot of day to day...
Read moreNever create Ruby strings longer than 23 characters!
You might think it's absurd but Pat Shaughnessy found out that Ruby strings are treated differently by Ruby interpreter and the main differentiator is; wait for it, their length.
According to his blog post, he tested string creation time under Ruby...
Read moreZurb Foundation 5 Quick Review
Two years ago, Zurb introduced Foundation and gave all User Interface Frameworks a solid contender.Fast forward to today, Foundation is hitting major version 5 and it is absolutely building up on its predecessor.
Read moreGithub forking workflow made easy
Do you fork too often? So do we.
It's quite familiar to have your project completely hosted on Github: repositories, issues, milestones, wiki, etc.The problem with this is that your team members need to be very familiar with Git and very...
Read moreSaving Paperclip Attachements Encoded Base64
The problem:
You need to upload an image from a mobile device to a Rails application which uses Paperclip.
Your model might look similar to this:
class User < ActiveRecord::Base attr_accessible :name has_attached_file :image, styles: { small: '90x90#', medium: '160x120#', large: '300x200#', }end
And you want to be able to upload user images.
< ActiveRecord::Base attr_accessible :name has_attached_file :image, styles: { small: '90x90#', medium: '160x120#', large: '300x200#', }end Read moreWhy we love Ruby on Rails
We kind of have been asked this question over and over and we believe the reasons are so many.
Rails is an extremely mature RAD Framework to the extent that it's currently driving the MVC bandwagon. A lot of effort has been put by Java, PHP, Python...
Read more