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
<h3 class="post-title">Input Form Title</h3> | |
<div class="contact-form cleafix"> | |
<!-- Simple_Form For Open Inserted Below--> | |
<div class="form-inputs"> | |
<!-- Simple_Form for inputs put below --> | |
</div> | |
<!-- Simple_Form formatted Submit Button Placed Below --> | |
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
rails server -e production |
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
<% provide(:page_title, 'Open Funds') %> |
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
<% provide(:page_title, 'Open Funds') %> | |
<% provide(:page_heading, 'Open Funds') %> | |
<% provide(:page_heading_sub, 'Funds with open investment status.') %> |
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
# In this example we are populating the index method with all records | |
# you do not use the all method when combining with the page method of kaminari | |
@funds = ProductCache.page(params[:page]).per(50) |
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
<% provide(:page_title, 'Open Funds') %> | |
<% provide(:page_heading, 'Open Funds') %> | |
<% provide(:page_heading_sub, 'Funds with open investment status.') %> | |
<div class="row-fluid"> | |
<div class="span12"> | |
<div class="table-header"> | |
<!--[TODO] There must be a better way to do this--> | |
<strong><%= @funds.size %></strong> Funds with OPEN status in ABase" | |
</div> | |
<table id="table_bug_report" class="table table-striped table-bordered table-hover"> |
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
# Use this helping to display the base domain name of a url | |
# I am using it when displaying web results that are loaded from Social Search | |
def get_host_without_www(url) | |
require 'uri' | |
uri = URI.parse(url) | |
uri = URI.parse("http://#{url}") if uri.scheme.nil? | |
host = uri.host.downcase | |
host.start_with?('www.') ? host[4..-1] : host | |
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
git checkout -b experimental origin/experimental |
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
<%= link_to '<i class=" cus-cancel"></i> Delete'.html_safe, questionnaire_path(@questionnaire), method: :delete, data: {confirm: 'Are you sure?'} %> |
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
<div class="row-fluid"> | |
<div class="span12"> | |
<table id="table_bug_report" class="table table-striped table-bordered table-hover"> | |
<thead> | |
<tr> | |
<th>Account Name</th> | |
<th>Contact Name</th> | |
<th>Contact Email</th> | |
<th></th> | |
</tr> |
NewerOlder