I am trying to use simple form with my rails 4 app.  I have a project model, which has a scope model. Scope belongs to project. I have a third model, called participant, which belongs to scope. Scope accepts nested attributes for participant and proj...
I want to style my Rails simple_form image upload field using Jasny's Twitter Bootstrap extension. I've already (successfully) been using CarrierWave to upload images.  Currently, my form works, and the code looks like this (I've taken aw...
Thanks for your time.  I am working on rails 3.2 and I am using gems simple_form, cocoon, and rails3-jquery-autocomplete.  I have following models Machine, Part, PartUsage, MachineCosting and PartCosting  Machine and Part models with many-to-many ass...
I have two simple_form fields like this:    <%= f.input :ration_card ,as: :radio_buttons,collection: ["Yes","No"], input_html: {id: "rationcard"} %> <%= f.input :rationcardNum , label: "Ration Card No." ,input...
Rails 4 - collection_select JS issue.  I am trying to get form to submit when a dropdown value is changed. Ive tried several different solutions, but the JS never fires for in my collection_select. I can get it to fire for an input without an issue,...
I use the client-side-validation gem and its simple_form plugin for client-side validation. I have a custom model with ActiveModel::Validations included and use simple_form to fill it.  <%= simple_form_for @solution, :validate => true, :url =&g...
Im using simple form with my Rails 4 app.  I have a projects model, a scope model and a data model.  Projects accept nested attributes for scopes. Scopes accept nested attributes for data.  In the new project form, I have a question asking users to s...
I have a Bootstrap Modal that is triggered when this link is clicked:  <a class="plus" href="javascript:;" data-toggle="modal" data-target="#myModal">&nbsp;</a>   I then have this in my _footer.html.erb...
Using the simple_form gem and rails I'm attempting to have a text_area (comment box) submit by only hitting the return key. Facebook has a similar feature and that's what I'm shooting for. Researching online hasn't produced much and I...
I have set up a JS function in my Rails app that fetches the current location of a user. I want the coordinates that are returned to go into a field in my Rails simple form on the click of a button. I tried using innerHTML and value to change the ele...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.