instedd-rails 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
data/README.markdown
CHANGED
@@ -13,8 +13,8 @@ Gemfile
|
|
13
13
|
|
14
14
|
gem 'instedd-rails'
|
15
15
|
|
16
|
-
|
17
|
-
|
16
|
+
Layout
|
17
|
+
------
|
18
18
|
|
19
19
|
Your application layout in app/views/layouts/application.html.erb should
|
20
20
|
look something like this:
|
@@ -61,6 +61,9 @@ look something like this:
|
|
61
61
|
<% end %>
|
62
62
|
<%= render :file => 'layouts/instedd_application' %>
|
63
63
|
|
64
|
+
Breadcrumbs
|
65
|
+
-----------
|
66
|
+
|
64
67
|
To specify the breadcrumbs, in your controller:
|
65
68
|
|
66
69
|
class YourController < ApplicationController
|
@@ -71,3 +74,13 @@ To specify the breadcrumbs, in your controller:
|
|
71
74
|
end
|
72
75
|
|
73
76
|
Read more about the [breadcrumbs\_on\_rails gem](https://github.com/weppos/breadcrumbs_on_rails).
|
77
|
+
|
78
|
+
Tabs
|
79
|
+
----
|
80
|
+
|
81
|
+
To render tabs in the view:
|
82
|
+
|
83
|
+
<ul class="tabs top">
|
84
|
+
<%= tab "Overview", overview_path %>
|
85
|
+
<%= tab "Settings", settings_path %>
|
86
|
+
</ul>
|
@@ -32,7 +32,7 @@
|
|
32
32
|
|
33
33
|
<div id="header">
|
34
34
|
<div class="left">
|
35
|
-
<a href="/"><%= image_tag "
|
35
|
+
<a href="/"><%= image_tag "#{application_name.underscore}.png" %></a>
|
36
36
|
</div>
|
37
37
|
<% if @show_breadcrumb %>
|
38
38
|
<div class="BreadCrumb">
|
data/lib/instedd_rails/engine.rb
CHANGED
@@ -5,9 +5,7 @@ require File.expand_path("../../../app/helpers/devise_helper", __FILE__)
|
|
5
5
|
|
6
6
|
module InsteddRails
|
7
7
|
class Engine < ::Rails::Engine
|
8
|
-
|
9
8
|
initializer "change view paths order to prepend devise views" do |app|
|
10
|
-
|
11
9
|
application_view_path = ActionController::Base.view_paths.to_a.first
|
12
10
|
instedd_rails_view_path = ActionController::Base.view_paths.detect do |path|
|
13
11
|
path.to_s.include? "instedd-rails"
|
@@ -15,13 +13,13 @@ module InsteddRails
|
|
15
13
|
|
16
14
|
ActionController::Base.prepend_view_path instedd_rails_view_path
|
17
15
|
ActionController::Base.prepend_view_path application_view_path
|
18
|
-
ActionController::Base.view_paths= ActionController::Base.view_paths.uniq.freeze
|
16
|
+
ActionController::Base.view_paths = ActionController::Base.view_paths.uniq.freeze unless Rails::version >= '3.2'
|
19
17
|
end
|
20
18
|
|
21
|
-
config.to_prepare do
|
22
|
-
ApplicationController.helper
|
23
|
-
ApplicationController.helper
|
24
|
-
ApplicationController.helper
|
19
|
+
config.to_prepare do
|
20
|
+
ApplicationController.helper InsteddRails::ApplicationHelper
|
21
|
+
ApplicationController.helper InsteddRails::InsteddAppHelper
|
22
|
+
ApplicationController.helper InsteddRails::MailerHelper
|
25
23
|
end
|
26
24
|
end
|
27
|
-
end
|
25
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: instedd-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.12
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-01-
|
12
|
+
date: 2012-01-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
|
-
requirement: &
|
16
|
+
requirement: &70269302736160 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '3.0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70269302736160
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: breadcrumbs_on_rails
|
27
|
-
requirement: &
|
27
|
+
requirement: &70269302735740 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70269302735740
|
36
36
|
description: This gem unifies all the helpers and common views used by all Instedd
|
37
37
|
applications
|
38
38
|
email:
|