Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added faqs model and created table. created some faqs in db using mig…
…ration. updated faqs page to use questions from db staged faq files
- Loading branch information
1 parent
579630c
commit 05ef359
Showing
11 changed files
with
88 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
class Faq < ActiveRecord::Base | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,9 @@ | ||
<div id="faqs"> | ||
<div class="title">FREQUENTLY ASKED QUESTIONS</div> | ||
<div class="faq"> | ||
<div class="question">How would you describe BucketRead in less than 10 words?</div> | ||
<div class="answer">A simple bookmarking service that helps you get organized.</div> | ||
</div> | ||
<div class="faq"> | ||
<div class="question">What do I need to get started?</div> | ||
<div class="answer">All you need is a valid email address.</div> | ||
</div> | ||
<div class="faq"> | ||
<div class="question">What's this business of 'locking' and 'unlocking' a link?</div> | ||
<div class="answer">The purpose of BucketRead is to allow you to organize links. After you read an article on a link you can 'lock' is so that it becomes archived. Links that are unlocked are the ones you want to read.</div> | ||
</div> | ||
<div class="faq"> | ||
<div class="question">Can 'locked' links be 'unlocked'?</div> | ||
<div class="answer">Yes, the purpose of locking a link is to mark it off as read. 'locked' links can be revisited by unlocking them.</div> | ||
</div> | ||
<div class="faq"> | ||
<div class="question">Can I 'drag and drop' a site to read later to save it?</div> | ||
<div class="answer">At the moment, URLs have to be copy/pasted. The BucketRead chrome extension will allow a 1-click solution to this.</div> | ||
</div> | ||
<div class="faq"> | ||
<div class="question">I am a developer, can I integrate BucketRead into my app?</div> | ||
<div class="answer">Yes. Check the BucketRead API documentation for information on how to authorize and link your app.</div> | ||
</div> | ||
<div class="faq"> | ||
<div class="question">My question was not answered here!</div> | ||
<div class="answer">Apologies. Please get in touch by sending us your question on bucketread AT basedataapp.com</div> | ||
</div> | ||
<% for faq in @faqs %> | ||
<div class="faq"> | ||
<div class="question"><%= faq.question %></div> | ||
<div class="answer"><%= faq.answer %></div> | ||
</div> | ||
<% end %> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
class CreateFaqs < ActiveRecord::Migration | ||
def self.up | ||
create_table :faqs do |t| | ||
t.string :question, :null => false | ||
t.string :answer, :null => false | ||
|
||
t.timestamps | ||
end | ||
end | ||
|
||
def self.down | ||
drop_table :faqs | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
require 'active_record/fixtures' | ||
|
||
class LoadFaqs < ActiveRecord::Migration | ||
def self.up | ||
Fixtures.create_fixtures('test/fixtures', File.basename("faqs.yml", '.*')) | ||
end | ||
|
||
def self.down | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
faq1: | ||
question: How would you describe BucketRead in less than 10 words? | ||
answer: A simple bookmarking service that helps you get organized. | ||
|
||
faq2: | ||
question: What do I need to get started? | ||
answer: All you need is a valid email address. | ||
|
||
faq3: | ||
question: What's this business of 'locking' and 'unlocking' a link? | ||
answer: The purpose of BucketRead is to allow you to organize links. After you read an article on a link you can 'lock' is so that it becomes archived. Links that are unlocked are the ones you want to read. | ||
|
||
faq4: | ||
question: Can 'locked' links be 'unlocked'? | ||
answer: Yes, the purpose of locking a link is to mark it off as read. 'locked' links can be revisited by unlocking them. | ||
|
||
faq5: | ||
question: Can I 'drag and drop' a site to read later to save it? | ||
answer: At the moment, URLs have to be copy/pasted. The BucketRead chrome extension will allow a 1-click solution to this. | ||
|
||
faq6: | ||
question: I am a developer, can I integrate BucketRead into my app? | ||
answer: Yes. Check the BucketRead API documentation for information on how to authorize and link your app. | ||
|
||
faq7: | ||
question: My question was not answered here! | ||
answer: Apologies. Please get in touch by sending us your question on bucketread AT basedataapp.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
require 'test_helper' | ||
|
||
class FaqTest < ActiveSupport::TestCase | ||
# Replace this with your real tests. | ||
test "the truth" do | ||
assert true | ||
end | ||
end |