GithubHelp home page GithubHelp logo

jamesgolick / attribute_fu Goto Github PK

View Code? Open in Web Editor NEW
98.0 98.0 20.0 185 KB

a better version of this functionality is in rails 2.3. use that!

Home Page: http://jamesgolick.com/attribute_fu

License: MIT License

Ruby 100.00%

attribute_fu's People

Contributors

bkeepers avatar cjse avatar danielmorrison avatar jamesgolick avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

attribute_fu's Issues

undefined method `render_associated_form'

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:


22:
23:

24: <%= f.render_associated_form(@institute.upload_files, :new => 5) %>
25:

26:
27: <%= f.add_associated_link('Add another file', @institute.upload_files.build) %>

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...

render_associated_form and html_saf

I use rails3, and when i use render_associated_form, result is :

["&lt;p class=\"upload\"&gt;\n  &lt;label for=\"upload_description\"&gt;Nom:&lt;/label&gt;\n  &lt;input id=\"article_photo_attributes_new_0_name\" name=\"article[photo_attributes][new][0][name]\" size=\"30\" type=\"text\" /&gt;\n \n  &lt;label for=\"article_photo_attributes_new_0_photo\"&gt;Photo&lt;/label&gt;\n  &lt;input id=\"article_photo_attributes_new_0_photo\" name=\"article[photo_attributes][new][0][photo]\" type=\"file\" /&gt;\n \n  &lt;a href=\"#\" onclick=\"$(this).parents('.photo').remove(); return false;\"&gt;remove&lt;/a&gt;\n&lt;/p&gt;"]

how can i use html_safe on it

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.