Skip to content

Commit 20dec32

Browse files
authored
Merge pull request #343 from crowdAI/faq
faq
2 parents c41358a + c95ee5b commit 20dec32

File tree

6 files changed

+56
-11
lines changed

6 files changed

+56
-11
lines changed

app/concepts/footer/views/show.erb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@
99
<li><a href="https://github.com/crowdAI"><i class="fa fa-github fa-lg" aria-hidden="true"></i></li>
1010
</ul>
1111
<ul class="links">
12-
<li><%= link_to 'Contact', pages_contact_path %></li>
13-
<li><%= link_to 'Privacy', pages_privacy_path %></li>
14-
<li><%= link_to 'Terms of Service', pages_terms_path %></li>
12+
<li><%= link_to 'FAQ', faq_path %></li>
13+
<li><%= link_to 'Contact', contact_path %></li>
14+
<li><%= link_to 'Privacy', privacy_path %></li>
15+
<li><%= link_to 'Terms of Service', terms_path %></li>
1516
</ul>
1617
</div>
1718
</footer>

app/controllers/pages_controller.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,8 @@ def privacy
88

99
def terms
1010
end
11+
12+
def faq
13+
end
14+
1115
end

app/views/devise/registrations/new.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
<%= f.password_field :password, placeholder: 'Choose a password' %>
1111
<%= f.password_field :password_confirmation, placeholder: 'Re-type password' %>
1212
<p>By signing up, I agree to terms in the
13-
<%= link_to 'Terms of Service', pages_terms_path %>
14-
and the <%= link_to 'Privacy Policy', pages_privacy_path %>
13+
<%= link_to 'Terms of Service', terms_path %>
14+
and the <%= link_to 'Privacy Policy', privacy_path %>
1515
</p>
1616
<%= f.button 'Sign Up', type: 'submit', class: 'btn btn-primary' %>
1717
</div>

app/views/pages/faq.html.erb

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<content>
2+
<div class="masthead">
3+
<div class="row">
4+
<div class="info">
5+
<h2>Frequently Asked Questions</h2>
6+
</div>
7+
</div>
8+
</div>
9+
<div class="row">
10+
<div class="article">
11+
12+
<h2>What is crowdAI?</h2>
13+
<p>CrowdAI is a platform for open data science challenges. CrowdAI helps universities, government agencies, NGOs, or businesses to run and manage their data challenges. The crowdAI platform is a non-profit, open source infrastructure that can
14+
immediately reach thousands of data scientists around the world to work on interesting data problems.</p>
15+
16+
<h2>I have a data science problem - why should I work with crowdAI?</h2>
17+
<p>Working with crowdAI by running a data challenge on the crowdAI platform has numerous benefits. The most important by far is that your challenge instantly gets exposure to thousands of data scientists around the world. You data challenge is
18+
transparent - the platform is open source, the discussions around your challenge are openly accessible, and the solutions are available under a license of your choice. Finally, by running a crowdsourced challenge, you send a clear signal that you're
19+
not just talking innovation, but actually walk the walk.
20+
</p>
21+
22+
<h2>I want to host a challenge - but does that mean I need to open my data?</h2>
23+
<p>Yes - at least a part of it. If you want to benefit from the ingenuity of thousands of data scientists, you need to make your data accessible in some form. It is often not necessary to make all data open, but just a fraction of it. And if you are
24+
concerned about privacy issues, talk to us, and we can help you evaluate the best anonymization strategies.</p>
25+
26+
<h2>Does this really work?</h2>
27+
<p>Absolutely. We have already run multiple challenges, many with great outcomes. Crowdsourcing data challenges is not entirely new, and has a multi-year history already, with numerous success stories.</p>
28+
29+
<h2>Who is behind crowdAI platform?</h2>
30+
<p>crowdAI was built, and is currently maintained, by the Digital Epidemiology Lab at EPFL in Switzerland. We initially built crowdAI to serve our own needs, but quickly realized that the platform could be useful to others as well. And we love
31+
interesting data challenges!</p>
32+
33+
</div>
34+
</div>
35+
</content>

config/routes.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,10 @@
8080
end
8181
get '/load_more_articles', to: 'articles#load_more', as: :load_more_articles
8282

83-
match '/pages/contact', to: 'pages#contact', via: :get
84-
match '/pages/privacy', to: 'pages#privacy', via: :get
85-
match '/pages/terms', to: 'pages#terms', via: :get
83+
match '/contact', to: 'pages#contact', via: :get
84+
match '/privacy', to: 'pages#privacy', via: :get
85+
match '/terms', to: 'pages#terms', via: :get
86+
match '/faq', to: 'pages#faq', via: :get
8687

8788
resources :markdown_editors, only: [:index, :create] do
8889
put :presign, on: :collection

spec/routing/pages_routing_spec.rb

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,19 @@
44
describe "routing" do
55

66
it "routes to #contact" do
7-
expect(:get => "/pages/contact").to route_to("pages#contact")
7+
expect(:get => "/contact").to route_to("pages#contact")
88
end
99

1010
it "routes to #new" do
11-
expect(:get => "/pages/privacy").to route_to("pages#privacy")
11+
expect(:get => "/privacy").to route_to("pages#privacy")
1212
end
1313

1414
it "routes to #show" do
15-
expect(:get => "/pages/terms").to route_to("pages#terms")
15+
expect(:get => "/terms").to route_to("pages#terms")
16+
end
17+
18+
it "routes to #faq" do
19+
expect(:get => "/faq").to route_to("pages#faq")
1620
end
1721

1822
end

0 commit comments

Comments
 (0)