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
<h2>Edit <%= resource_name.to_s.humanize %></h2> | |
<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put }) do |f| %> | |
<%= devise_error_messages! %> | |
<div><%= f.label :email %><br /> | |
<%= f.email_field :email, :autofocus => true %></div> | |
<% if devise_mapping.confirmable? && resource.pending_reconfirmation? %> | |
<div>Currently waiting confirmation for: <%= resource.unconfirmed_email %></div> |
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
<h2>Items</h2> | |
<% @users.company.each do |company| %> | |
<div> | |
<h4><%= company.name %></h4> | |
</div> | |
<% 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
def edit | |
logger.info "XXX CompaniesController edit id:#{params[:id]}" | |
if userpartofcompany | |
logger.info "XXX YES" | |
else | |
logger.info "XXX NO" | |
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
<h1>Editing company</h1> | |
<% if @isuserpartofcompany %> | |
<%= render 'form' %> | |
<% end %> | |
<%= link_to 'Show', @company %> | | |
<%= link_to 'Back', companies_path %> |
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
<%= form_for(@account_category) do |f| %> | |
<% if @account_category.errors.any? %> | |
<div id="error_explanation"> | |
<h2><%= pluralize(@account_category.errors.count, "error") %> prohibited this account_category from being saved:</h2> | |
<ul> | |
<% @account_category.errors.full_messages.each do |msg| %> | |
<li><%= msg %></li> | |
<% end %> | |
</ul> |
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
<%= form_for(@account_category) do |f| %> | |
<% if @account_category.errors.any? %> | |
<div id="error_explanation"> | |
<h2><%= pluralize(@account_category.errors.count, "error") %> prohibited this account_category from being saved:</h2> | |
<ul> | |
<% @account_category.errors.full_messages.each do |msg| %> | |
<li><%= msg %></li> | |
<% end %> | |
</ul> |
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
<%= form_for(@account_category) do |f| %> | |
<% if @account_category.errors.any? %> | |
<div id="error_explanation"> | |
<h2><%= pluralize(@account_category.errors.count, "error") %> prohibited this account_category from being saved:</h2> | |
<ul> | |
<% @account_category.errors.full_messages.each do |msg| %> | |
<li><%= msg %></li> | |
<% end %> | |
</ul> |
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
Parameters: {"utf8"=>"✓", "authenticity_token"=>"5sZUCrbk1QyOUDtBNvJLuZRRViMxY4/gx8/7HagIQv4=", "account_category"=>{"name"=>"", "company_id"=>"1", "country_id"=>"1", "data"=>{"code"=>"1", "name"=>"fish"}}, "commit"=>"Create Account category"} | |
Parameters: {"utf8"=>"✓", "authenticity_token"=>"5sZUCrbk1QyOUDtBNvJLuZRRViMxY4/gx8/7HagIQv4=", "account_category"=>{"name"=>"", "company_id"=>"1", "country_id"=>"1", "data"=>[{"code"=>"1", "name"=>"fish"},{"code"=>"1", "name"=>"cow"},{"code"=>"1", "name"=>"lion"}]}, "commit"=>"Create Account category"} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Megaaccounts</title> | |
<link data-turbolinks-track="true" href="/assets/application.css?body=1" media="all" rel="stylesheet" /> | |
<link data-turbolinks-track="true" href="/assets/account_categories.css?body=1" media="all" rel="stylesheet" /> | |
<link data-turbolinks-track="true" href="/assets/bill_products.css?body=1" media="all" rel="stylesheet" /> | |
<link data-turbolinks-track="true" href="/assets/bills.css?body=1" media="all" rel="stylesheet" /> | |
<link data-turbolinks-track="true" href="/assets/companies.css?body=1" media="all" rel="stylesheet" /> |
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
<%= form_for(@payment_account) do |f| %> | |
<% if @payment_account.errors.any? %> | |
<div id="error_explanation"> | |
<h2><%= pluralize(@payment_account.errors.count, "error") %> prohibited this payment_account from being saved:</h2> | |
<ul> | |
<% @payment_account.errors.full_messages.each do |msg| %> | |
<li><%= msg %></li> | |
<% end %> | |
</ul> |