README.textile in imaginable-0.0.5 vs README.textile in imaginable-0.1.0
- old
+ new
@@ -4,10 +4,12 @@
h2. Compatibility
Imaginable is currently only compatible with Rails 3
+Imaginable requires that you use jQuery. You can do this easily with the jquery-rails gem.
+
h2. Installation
Simply add Imaginable to your Gemfile and bundle it up:
<pre>
@@ -65,11 +67,11 @@
<%= f.label :body %><br />
<%= f.text_area :body %>
</div>
<div class="field">
<%= f.label :photo %><br />
- <%= f.image_field :photo %>
+ <%= f.image_field :photo, :format => 'square' %>
</div>
<div class="actions">
<%= f.submit %>
</div>
<% end %>
@@ -78,12 +80,11 @@
Please note, that you need to include the Imaginable javascripts in your layout, or by other means.
Here is an example of what you could do, if you had a @yield(:head)@ in the @head@ section of your layout:
<pre>
<% content_for(:head) do %>
- <%= javascript_include_tag 'plupload.full.min' %>
- <%= javascript_include_tag 'imaginable' %>
+ <%= imaginable_includes_tag %>
<% end %>
</pre>
That's all there is to it!
@@ -108,7 +109,7 @@
To show an image, you simply call the imaginable method of your model.
The method will have the name that you have configured in your model.
In the above examples, this would be @@article.photo@.
<pre>
- <%= image_tag @article.photo.url(:width => 500) %>
+ <%= image_tag @article.photo.url(:format => 'square', :width => 500) %>
</pre>
\ No newline at end of file