This file contains hidden or 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
app | |
engines | |
engine_one | |
app | |
models | |
..etc | |
engine_two | |
app | |
models | |
..etc |
This file contains hidden or 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 home | |
render 'signed_out_home' and return unless signed_in? | |
current_user.active_subscription? ? load_signed_in_page : redirect_to plans_path | |
end |
This file contains hidden or 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
<body id="brands" data-hook="body"> | |
<ul class="letters"> | |
<% ('A'..'Z').each do |letter| %> | |
<li><%= link_to letter, "#", class: "key-link", data: { letter: letter } %></li> | |
<% end %> | |
</ul> | |
<hr> | |
<% @brands.each do |key, brands| %> | |
<ul class="brand-letters"> | |
<li id="letter-<%= key %>" class="key"><%= key %></li> |
This file contains hidden or 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
class Task < ActiveRecord::Base | |
def self.todays_tasks | |
where(due_date: Date.today.beginning_of_day..Date.today.end_of_day) | |
end | |
def self.tomorrows_tasks | |
where(due_date: Date.tomorrow.beginning_of_day..Date.tomorrow.end_of_day) | |
end | |
end |
This file contains hidden or 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
4 def import | |
5 unless params[:file].blank? | |
6 labels = Array.new | |
7 IO.foreach( params[:file].tempfile ) do |line| | |
8 if /;/.match( line ) | |
9 labels << line.split( ';' ) | |
10 elsif /,/.match( line ) | |
11 labels << line.split( ',' ) | |
12 else | |
13 labels << line |
NewerOlder