Skip to content

Commit

Permalink
[#6] Add basic create action and form to perform a google query
Browse files Browse the repository at this point in the history
  • Loading branch information
malparty committed Jun 30, 2021
1 parent 5a3282a commit 074f17a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/views/keywords/create.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<h1>Result for <%= @keyword %></h1>
<div>
<%= @raw_response.body.html_safe %>
</div>
6 changes: 6 additions & 0 deletions app/views/keywords/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
<h1>Keywords#index</h1>
<p>Find me in app/views/keyword/index.html.erb</p>

<%= form_with url: keywords_path, method: :post do |form| %>
<%= form.label :keyword, "Search for:" %>
<%= form.text_field :keyword %>
<%= form.submit "Search" %>
<% end %>

0 comments on commit 074f17a

Please sign in to comment.