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
# PRODUCT MODEL | |
has_many :product_people | |
has_many :people, :through => :product_people | |
accepts_nested_attributes_for :people | |
<%= f.inputs "Cast" do %> | |
<%= f.inputs :for => :people do |p| %> | |
<%= p.input :name %> | |
<%= p.input :_destroy, :as => :boolean %> |
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
# This file contains custom input method from formtastic 1.2 and their | |
# replacement classes in 2.0 | |
module FormtasticExtensions | |
class WysiwygInput < Formtastic::Inputs::TextInput | |
def input_html_options | |
wysiwyg_type = input_options.delete(:controls) |
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
/* Main navigation elements. | |
-------------------------------------------------------------- */ | |
#Nav {height:45px;background:transparent} | |
#Nav ul {list-style:none;margin:10px 0 0 7px} | |
#Nav ul li {display:inline} | |
#Nav ul li a {list-style-type:none;display:inline-block;padding:10px 20px;color:#a1a1a1;background:#f4f4f4;border:1px solid #d1d1d1;text-transform:uppercase;-moz-border-radius:4px;-webkit-border-radius:4px;-moz-box-shadow:0 1px 3px #f1f1f1;-webkit-box-shadow:0 1px 3px #f1f1f1} |
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
= semantic_form_for @user_profile, :url => user_user_profile_path(@user), :html => {:multipart => true} do |form| | |
%p.large Personal information | |
%hr.profile | |
%p.smlTitle Phone Number | |
= form.inputs do | |
= form.semantic_fields_for :profile_phones do |phone| | |
= render 'profile_phone_fields', :form => phone | |
= link_to_add_fields "Add Phone", form, :profile_phones, "addPhone" | |
= form.buttons |
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
= semantic_form_for @pet do |form| | |
= form.inputs do | |
= form.input :animal | |
= form.input :diseases, :as => :check_boxes, :value_as_class => true | |
= form.buttons |
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 CMS alternatives | |
====================== | |
Note: project activity was checked on 11/26/09. | |
Active projects: | |
--------------- | |
adva-cms | |
repo: http://github.com/svenfuchs/adva_cms/ | |
site: http://adva-cms.org/ | |
Last update: 11/24/09 |