jamesgolick / attribute_fu Goto Github PK
View Code? Open in Web Editor NEWa better version of this functionality is in rails 2.3. use that!
Home Page: http://jamesgolick.com/attribute_fu
License: MIT License
a better version of this functionality is in rails 2.3. use that!
Home Page: http://jamesgolick.com/attribute_fu
License: MIT License
attribute_fu plugin will support Rails 3.x version?
I have Attachment_fu plugin but, I am getting This Issue
ActionView::TemplateError (undefined method `render_associated_form' for #ActionView::Helpers::FormBuilder:0xb63bbe54) on line #24 of app/views/institutes/new.html.erb:
21:
app/views/institutes/new.html.erb:24
app/views/institutes/new.html.erb:3
app/controllers/institutes_controller.rb:30:in `new'
lib/gen_app.rb:51:in `call'
Please Help Me...
Just a hint:
In case you want to switch from this method to the new rails internal nested model form check out this fork:
http://github.com/odadata/attribute_fu/commit/a0402d12f2d380d8decc82bdfbcc5d8a0a185524
or this gist (without js syntax and changed render_form name)
I use rails3, and when i use render_associated_form, result is :
["<p class=\"upload\">\n <label for=\"upload_description\">Nom:</label>\n <input id=\"article_photo_attributes_new_0_name\" name=\"article[photo_attributes][new][0][name]\" size=\"30\" type=\"text\" />\n \n <label for=\"article_photo_attributes_new_0_photo\">Photo</label>\n <input id=\"article_photo_attributes_new_0_photo\" name=\"article[photo_attributes][new][0][photo]\" type=\"file\" />\n \n <a href=\"#\" onclick=\"$(this).parents('.photo').remove(); return false;\">remove</a>\n</p>"]
how can i use html_safe on it
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.