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
| ActiveAdmin.register Gardener do | |
| permit_params :group_id, :first_name, :last_name, :contact_number, :address, :id_number, :avatar, :resume, :race | |
| filter :garden, :as => :select, :collection => Gardener.all.map { |a| [ a.garden, a.id ] }, :label_method => :format_name, :value_method => :id | |
| filter :group, :label => "Select a group:", :as => :select, :collection => Group.all.map { |a| [ a.id, a.group_name] }, :label_method => :format_name, :value_method => :id | |
| filter :living_arrangement, :label => "select a maritial status", :as => :select, :collection => LivingArrangement.all.map { |a| [ a.marital_status, a.id ] }, :label_method => :format_name, :value_method => :marital_status | |
| #sfl | |
| #education | |
| #employment | |
| #grant | |
| #ability |
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
| emGIT | |
| remote: git://github.com/activeadmin/activeadmin.git | |
| revision: 7aef260921d418d904d2dba9b1a97eed893e9019 | |
| specs: | |
| activeadmin (1.0.0.pre) | |
| arbre (~> 1.0, >= 1.0.2) | |
| bourbon | |
| coffee-rails | |
| formtastic (~> 3.1) | |
| formtastic_i18n |
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
| Started GET "/activities" for 127.0.0.1 at 2015-02-24 09:32:47 +0200 | |
| Processing by ActivitiesController#index as HTML | |
| PublicActivity::Activity Load (0.5ms) SELECT "activities".* FROM "activities" | |
| User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = 3 ORDER BY "users"."id" ASC LIMIT 1 | |
| Template Load (0.3ms) SELECT "templates".* FROM "templates" WHERE "templates"."id" = $1 LIMIT 1 [["id", 11]] | |
| Rendered public_activity/template/_create.html.erb (1.5ms) | |
| User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 3]] | |
| Template Load (0.3ms) SELECT "templates".* FROM "templates" WHERE "templates"."id" = $1 LIMIT 1 [["id", 12]] | |
| Rendered public_activity/template/_create.html.erb (1.7ms) | |
| CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 3]] |
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>Listing orders</h1> | |
| </div> | |
| <table> | |
| <thead> | |
| <tr> | |
| <th> </th> | |
| <th> Template used </th> | |
| <th> Special Notes </th> |
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
| <%= render :partial => "#{@customer.current_step}_step", :locals => ({:f => f},{:d => builder}) %> | |
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="panel panel-default"> | |
| <strong>Add a Home Gardener</strong> | |
| <%= form_for([@gardener.group, @gardener]) do |g| %> | |
| <%= render "shared/error_messages", :target => @gardener %> | |
| <fieldset> | |
| <%= g.label :first_name %> | |
| <%= g.text_field :first_name %> | |
| </p> |
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 GardenersController < ApplicationController | |
| # GET /groups/:group_id/gardeners | |
| # GET /groups/:group_id/gardeners.xml | |
| def index | |
| #1st you retrieve the group thanks to params[:group_id] | |
| group = Group.find(params[:group_id]) | |
| #2nd you get all the gardeners of this group | |
| @gardeners= group.gardeners |
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="panel panel-default"> | |
| <strong>Add a Home Gardener</strong> | |
| <%= form_for([@gardener.group, @gardener]) do |g| %> | |
| <%= render "shared/error_messages", :target => @gardener %> | |
| <fieldset> | |
| <%= g.label :first_name %> | |
| <%= g.text_field :first_name %> | |
| </p> |
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
| Building native extensions. This could take a while... | |
| ERROR: Error installing bcrypt: | |
| ERROR: Failed to build gem native extension. | |
| /Users/samanthajones/.rvm/rubies/ruby-2.1.2/bin/ruby extconf.rb | |
| creating Makefile | |
| make "DESTDIR=" clean | |
| make "DESTDIR=" |
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
| <%= f.error_messages %> | |
| <p> | |
| <%= f.label :name %>:<br> | |
| <%= f.text_field :name, { :class => 'text_input' } %> | |
| </p> | |
| <p> | |
| <%= f.submit t(:save) %> — | |
| <%= link_to t(:back), folder_url(@folder.parent) %> | |
| </p> |
NewerOlder