Coder Social home page Coder Social logo

cocoon_simple_form_demo's People

Contributors

dependabot[bot] avatar gsmendoza avatar mayordwells avatar nathanphilliber avatar nathanvda avatar zpvip 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  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cocoon_simple_form_demo's Issues

link to remove association on has_many through does not work

  1. Downloaded and ran the cocoon_simple_form_demo.
  2. Create a project and add a few tags (has_many through) and save.
  3. Edit the project, clicking remove on some/all the tags and click "update project" to save
  4. Tags which were "removed" are still present on the project. The association should be deleted.

Error during rake db:migrate

if during rake db:migrate the following error occurs:
NoMethodError: undefined method last_comment' for #<Rake::Application:0x007f2e4ce09cd8>
then a quick fix can be edit ./Rakefile and add these lines before calling Rails.application.load_tasks

require File.expand_path('../config/application', __FILE__)
require 'rake'

+ module TempFixForRakeLastComment
+   def last_comment
+     last_description
+   end 
+ end
+ Rake::Application.send :include, TempFixForRakeLastComment

CocoonSimpleFormDemo::Application.load_tasks

Links not working

They seem to be all stubbed out '#'. On the create new Project page, none of the links work. Browsing through the code the js seems to be there, but not sure why they aren't working.

image
image

Nested form Images in view

How would I go about displaying images from a partial in a view using this gem. For example, I have a profile that has many products. In my view I have something like this for text fields:

<% @editprofile.products.each do |product| %>
     <strong>Product/Service:</strong>
      <%= product.prodserv %>
      <strong>Product Description:</strong>
      <%= product.productdesc %>
  <% end %>

What should I put to display images from the product partial?

Product Partial:

<div class='nested-fields'> 
  <p><b> Product (s) Name (Max 75 characters): </b></p> 
  <%= f.input :prodserv, label: "Products" %>  
  <p><b>Description</b> (Maximum 500 Characters)</p>
  <%= f.input :productdesc, label: "Product Description" %>
  <p><b>Upload Pictures: </b>(Note: You can upload a total of two files (picture, audio, video, ppt, MSWord, Excel)
        for each product or service)</p>
  <%= f.file_field :upload %>
  <%= f.file_field :upload2 %>
  <p><b>Attached Product Information</b></p>
  <%= f.file_field :urlimage %><%= link_to_remove_association "remove url", f %>
  <%= f.input :url, label: "Product URL"  %>
</div>

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.