Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## _form.html.haml
- - f.fields_for :sk, @article.sk do |sk|
- Title:
- = sk.text_field :title
- Description:
- = sk.text_area :description
- ## article.rb
- def sk= attrs
- set_translations :sk => attrs
- end
- def sk
- globalize_translations.find :first, :conditions => {:locale => 'sk'}
- end
Add Comment
Please, Sign In to add comment