-
Shows when did last bus leave
-
By default app tells you when will the next bus arrive
-
Click button "I wanna go to Samobor" shows next bus for Samobor
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
def create | |
@existing_tag_list_array = ["ruby", "rails", "ruby on rails", "jquery", "javascript", "php", "sql"] | |
@post = current_user.posts.build(post_params) | |
@post.tag_list = @existing_tag_list_array & @post.tag_list | |
if @post.tag_list.empty? | |
flash.now[:danger] = "Please select tag from list" | |
render "new" | |
else | |
respond_to do |format| |
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
require 'rails_helper' | |
require 'spec_helper' | |
describe "User Registration" do | |
subject { page } | |
describe "signup page" do | |
before { visit new_user_registration_path } | |
let(:submit) { "Sign up" } |
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
def after_sign_out_path_for(resource) | |
new_user_session_path | |
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
# SQLite version 3.x | |
# gem install sqlite3 | |
# | |
# Ensure the SQLite 3 gem is defined in your Gemfile | |
# gem 'sqlite3' | |
# | |
default: &default | |
adapter: sqlite3 | |
pool: 5 | |
timeout: 5000 |
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
<b>U:</b> <%= @u.title %> |
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
<p id="notice"><%= notice %></p> | |
<h1>All Questions</h1> | |
<div class="questions-orders"> | |
<%= sort_link(@q, :title) %> | |
<%= sort_link(@q, :created_at, "Created") %> | |
<%= sort_link(@q, :cached_votes_score, "Hearts") %> | |
</div> | |
<%= search_form_for @q do |f| %> |
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
<%= search_form_for @q do |f| %> | |
<%= f.text_field :description_cont %> | |
<%= f.submit %> | |
<% 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
<!doctype html> | |
<html class="no-js"> | |
<head> | |
<meta charset="utf-8"> | |
<title></title> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width"> | |
<!-- Place favicon.ico and apple-touch-icon.png in the root directory --> | |
<!-- build:css(.) styles/vendor.css --> | |
<!-- bower:css --> |
A Pen by Antonija Šimić on CodePen.