6. < Genius idea />
www.startupdecode.com
A GOOD
IDEA REVENUE=>
NO
REVENUE
= NOT A
GOOD IDEA
JUST PROBLEMS
KEEP
CALM
&
BUILD IT
7. < Linkedin />
“If you are not embarrassed by the
first version of your product, you’ve
launched too late.”
Reid Hoffman,
founder of LinkedIn
www.startupdecode.com
8. < Online project />
The best way to find and share
learning paths
Accelerate your learning curve
achieve your full potential
www.startupdecode.com
25. < Images />
www.startupdecode.com
1. Add image to Company model
3. Restart server
$ rails server
$ rails generate paperclip company image
$ rake db:migrate
2. Migrate database
26. < Update model />
www.startupdecode.com
1. Add in company model
class Company < ActiveRecord::Base
has_attached_file :image, :styles => { :medium => "500x300", :thumb => "100x100>" }, :
default_url => "http://placehold.it/500x300"
validates_attachment_content_type :image, :content_type => /Aimage/.*Z/
end
27. < Update controller />
www.startupdecode.com
1. Add in “companies_controller.rb”
def company_params
params.require(:company).permit(:name, :description, :address, :zipcode, :city, :image)
end
29. < Don’t forget />
“If you are not embarrassed by the
first version of your product, you’ve
launched too late.”
Reid Hoffman,
founder of LinkedIn
www.startupdecode.com