refinerycms 0.9.4 → 0.9.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README
CHANGED
@@ -37,4 +37,15 @@ ruby script/server
|
|
37
37
|
|
38
38
|
Now in your browser go to http://localhost:3000 and your site should be running.
|
39
39
|
|
40
|
-
You will be prompted to setup your first user.
|
40
|
+
You will be prompted to setup your first user.
|
41
|
+
|
42
|
+
== Environment required
|
43
|
+
|
44
|
+
Refinery runs using a number of gems which (as of version 0.9.4.1) are outlined below:
|
45
|
+
|
46
|
+
- "rake", :version => ">= 0.8.3"
|
47
|
+
- "friendly_id", :version => ">= 2.1.4"
|
48
|
+
- "mislav-will_paginate", :version => ">= 2.3.11"
|
49
|
+
- "rails", :version => ">= 2.3.4"
|
50
|
+
- "rubyist-aasm", :version => ">= 2.1.1"
|
51
|
+
- "unicode", :version => ">= 0.1"
|
@@ -3,7 +3,7 @@ class InquiryMailer < ActionMailer::Base
|
|
3
3
|
def confirmation(inquiry, request)
|
4
4
|
@subject = "Thank you for your inquiry"
|
5
5
|
@recipients = inquiry.email
|
6
|
-
@from = "#{RefinerySetting[:site_name]} <no-reply@#{request.domain(RefinerySetting.find_or_set(:tld_length, 1))}>"
|
6
|
+
@from = "\"#{RefinerySetting[:site_name]}\" <no-reply@#{request.domain(RefinerySetting.find_or_set(:tld_length, 1))}>"
|
7
7
|
@sent_on = Time.now
|
8
8
|
@body[:inquiry] = inquiry
|
9
9
|
end
|
@@ -11,7 +11,7 @@ class InquiryMailer < ActionMailer::Base
|
|
11
11
|
def notification(inquiry, request)
|
12
12
|
@subject = "New inquiry from your website"
|
13
13
|
@recipients = InquirySetting.notification_recipients.value
|
14
|
-
@from = "#{RefinerySetting[:site_name]} <no-reply@#{request.domain(RefinerySetting.find_or_set(:tld_length, 1))}>"
|
14
|
+
@from = "\"#{RefinerySetting[:site_name]}\" <no-reply@#{request.domain(RefinerySetting.find_or_set(:tld_length, 1))}>"
|
15
15
|
@sent_on = Time.now
|
16
16
|
@body[:inquiry] = inquiry
|
17
17
|
end
|
@@ -29,7 +29,7 @@
|
|
29
29
|
<div id='page_part_editors'>
|
30
30
|
<% part_index = -1 %>
|
31
31
|
<% f.fields_for :parts do |p| %>
|
32
|
-
<%= render :partial => "page_part_field", :locals => {:title => p.object.title, :body => p.object.body, :part_index => (part_index += 1), :new_part =>
|
32
|
+
<%= render :partial => "page_part_field", :locals => {:title => p.object.title, :body => p.object.body, :part_index => (part_index += 1), :new_part => @page.new_record?} %>
|
33
33
|
<% end %>
|
34
34
|
</div>
|
35
35
|
</div>
|