README.md in phocoder-rails-0.0.55 vs README.md in phocoder-rails-0.0.56

- old
+ new

@@ -7,11 +7,11 @@ ## Installing Add this to your Gemfile: ```ruby -gem "phocoder-rails" +gem "phocoder-rails", :require => 'phocoder_rails' ``` And then run: ```term @@ -52,19 +52,34 @@ create app/views/image_uploads/new.html.erb create app/views/image_uploads/show.html.erb route resources :image_uploads, :except=>[:edit,:update] ``` +Then run + +```term +rake db:migrate +``` + ## Updating an existing model -First generate a migration that will add some extra columns to your table. You should red the migration -after it is generated to make sure that it makes sense within the context of your model. +You can also update an existing model. First generate a migration that will add some extra columns to your +table. ```term rails g phocoder_rails:model_update my_model ``` +You should read the migration after it is generated to make +sure that it makes sense within the context of your model. + +Then run + +```term +rake db:migrate +``` + Then you should make sure that your form is set up for multi part encoding, and that you have a `file_field` in your form named `file`. ```erb <%= f.file_field :file %> @@ -86,13 +101,13 @@ :thumbnails => [ {:label=>"small", :width=>100, :height=>100, :aspect_mode => 'crop'}, {:label=>"medium", :width=>400, :height=>400, :aspect_mode => 'preserve', :frame=>{ :width=>20, :bottom=>50, :color=>'003' }, :annotations=>[ - {:text=>"Annotation Testing",:pointsize=>30,:fill_color=>'fff',:gravity=>"South",:y=>10}, - {:text=>"Howdy!",:pointsize=>10,:fill_color=>'ccc',:gravity=>"North",:y=>5} - ] + {:text=>"Annotation Testing",:pointsize=>30,:fill_color=>'fff',:gravity=>"South",:y=>10}, + {:text=>"Howdy!",:pointsize=>10,:fill_color=>'ccc',:gravity=>"North",:y=>5} + ] } ] end ``` @@ -103,6 +118,6 @@ and on the bottom of the image. [Add images] -## Storage and Processing Modes \ No newline at end of file +## Storage and Processing Modes