refinerycms-quotes 1.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,7 @@
|
|
1
1
|
class QuotesController < ApplicationController
|
2
2
|
|
3
|
+
before_filter :find_page, :only => [:create, :new]
|
4
|
+
|
3
5
|
def thank_you
|
4
6
|
@page = Page.find_by_link_url("/quotes/thank_you", :include => [:parts, :slugs])
|
5
7
|
end
|
@@ -18,4 +20,10 @@ class QuotesController < ApplicationController
|
|
18
20
|
render :new
|
19
21
|
end
|
20
22
|
end
|
23
|
+
|
24
|
+
protected
|
25
|
+
|
26
|
+
def find_page
|
27
|
+
@page = Page.find_by_link_url('/quotes', :include => [:parts, :slugs])
|
28
|
+
end
|
21
29
|
end
|