Skip to content

Commit

Permalink
Merge pull request #343 from crowdAI/faq
Browse files Browse the repository at this point in the history
faq
  • Loading branch information
scarroll32 authored Oct 9, 2017
2 parents c41358a + c95ee5b commit 20dec32
Show file tree
Hide file tree
Showing 6 changed files with 56 additions and 11 deletions.
7 changes: 4 additions & 3 deletions app/concepts/footer/views/show.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@
<li><a href="https://github.com/crowdAI"><i class="fa fa-github fa-lg" aria-hidden="true"></i></li>
</ul>
<ul class="links">
<li><%= link_to 'Contact', pages_contact_path %></li>
<li><%= link_to 'Privacy', pages_privacy_path %></li>
<li><%= link_to 'Terms of Service', pages_terms_path %></li>
<li><%= link_to 'FAQ', faq_path %></li>
<li><%= link_to 'Contact', contact_path %></li>
<li><%= link_to 'Privacy', privacy_path %></li>
<li><%= link_to 'Terms of Service', terms_path %></li>
</ul>
</div>
</footer>
4 changes: 4 additions & 0 deletions app/controllers/pages_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,8 @@ def privacy

def terms
end

def faq
end

end
4 changes: 2 additions & 2 deletions app/views/devise/registrations/new.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
<%= f.password_field :password, placeholder: 'Choose a password' %>
<%= f.password_field :password_confirmation, placeholder: 'Re-type password' %>
<p>By signing up, I agree to terms in the
<%= link_to 'Terms of Service', pages_terms_path %>
and the <%= link_to 'Privacy Policy', pages_privacy_path %>
<%= link_to 'Terms of Service', terms_path %>
and the <%= link_to 'Privacy Policy', privacy_path %>
</p>
<%= f.button 'Sign Up', type: 'submit', class: 'btn btn-primary' %>
</div>
Expand Down
35 changes: 35 additions & 0 deletions app/views/pages/faq.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<content>
<div class="masthead">
<div class="row">
<div class="info">
<h2>Frequently Asked Questions</h2>
</div>
</div>
</div>
<div class="row">
<div class="article">

<h2>What is crowdAI?</h2>
<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
immediately reach thousands of data scientists around the world to work on interesting data problems.</p>

<h2>I have a data science problem - why should I work with crowdAI?</h2>
<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
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
not just talking innovation, but actually walk the walk.
</p>

<h2>I want to host a challenge - but does that mean I need to open my data?</h2>
<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
concerned about privacy issues, talk to us, and we can help you evaluate the best anonymization strategies.</p>

<h2>Does this really work?</h2>
<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>

<h2>Who is behind crowdAI platform?</h2>
<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
interesting data challenges!</p>

</div>
</div>
</content>
7 changes: 4 additions & 3 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,10 @@
end
get '/load_more_articles', to: 'articles#load_more', as: :load_more_articles

match '/pages/contact', to: 'pages#contact', via: :get
match '/pages/privacy', to: 'pages#privacy', via: :get
match '/pages/terms', to: 'pages#terms', via: :get
match '/contact', to: 'pages#contact', via: :get
match '/privacy', to: 'pages#privacy', via: :get
match '/terms', to: 'pages#terms', via: :get
match '/faq', to: 'pages#faq', via: :get

resources :markdown_editors, only: [:index, :create] do
put :presign, on: :collection
Expand Down
10 changes: 7 additions & 3 deletions spec/routing/pages_routing_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,19 @@
describe "routing" do

it "routes to #contact" do
expect(:get => "/pages/contact").to route_to("pages#contact")
expect(:get => "/contact").to route_to("pages#contact")
end

it "routes to #new" do
expect(:get => "/pages/privacy").to route_to("pages#privacy")
expect(:get => "/privacy").to route_to("pages#privacy")
end

it "routes to #show" do
expect(:get => "/pages/terms").to route_to("pages#terms")
expect(:get => "/terms").to route_to("pages#terms")
end

it "routes to #faq" do
expect(:get => "/faq").to route_to("pages#faq")
end

end
Expand Down

0 comments on commit 20dec32

Please sign in to comment.