ecm_sliders 0.0.3.pre → 0.0.4.pre

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -1,3 +1,35 @@
1
1
  = ECM Sliders
2
2
 
3
+ = Installation
4
+
5
+ Add it to your bundle:
6
+
7
+ # Gemfile
8
+ gem 'ecm_sliders'
9
+
10
+ Update your bundle:
11
+
12
+ > bundle install
13
+
14
+ Install the module:
15
+
16
+ > rails g ecm:sliders:install
17
+
18
+ Create migrations:
19
+
20
+ > rake ecm_sliders_engine:install:migrations
21
+
22
+ Migrate:
23
+
24
+ > rake db:migrate
25
+
26
+ = Usage
27
+
28
+ Use the helper to display a slider:
29
+
30
+ <%= render_slider 'My Slider' %>
31
+
32
+ = License
33
+
3
34
  This project rocks and uses MIT-LICENSE.
35
+
@@ -23,6 +23,7 @@ class Ecm::Sliders::Item < ActiveRecord::Base
23
23
  :image_content_type,
24
24
  :image_finger_print,
25
25
  :image_updated_at,
26
+ :markup_language,
26
27
  :position,
27
28
  :url
28
29
 
@@ -14,6 +14,7 @@ ActiveAdmin.register Ecm::Sliders::Item do
14
14
  :hint => f.template.image_tag(f.object.image.url(:thumb))
15
15
  f.input :url
16
16
  f.input :body
17
+ f.input :markup_language, :as => :select, :collection => Ecm::Sliders::Configuration.markup_languages
17
18
  end
18
19
 
19
20
  f.actions
@@ -20,6 +20,7 @@ ActiveAdmin.register Ecm::Sliders::Slider do
20
20
  :hint => item.template.image_tag(item.object.image.url(:thumb))
21
21
  item.input :url
22
22
  item.input :body
23
+ item.input :markup_language, :as => :select, :collection => Ecm::Sliders::Configuration.markup_languages
23
24
  end # f.has_many
24
25
  end
25
26
 
@@ -1,5 +1,5 @@
1
1
  module Ecm
2
2
  module Sliders
3
- VERSION = "0.0.3.pre"
3
+ VERSION = "0.0.4.pre"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecm_sliders
3
3
  version: !ruby/object:Gem::Version
4
- hash: 961915976
4
+ hash: 961915988
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 3
9
+ - 4
10
10
  - pre
11
- version: 0.0.3.pre
11
+ version: 0.0.4.pre
12
12
  platform: ruby
13
13
  authors:
14
14
  - Roberto Vasquez Angel
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2012-09-24 00:00:00 Z
19
+ date: 2012-11-04 00:00:00 Z
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  name: active_admin-acts_as_list