Questions tagged [rails-4-2-1]

For issues specific to the minor release of version 4.2.1 of Rails. If your question applies to Ruby on Rails in general, use the tag [ruby-on-rails]

47 questions
0
votes
1 answer

Mark a checkbox, click on button and pass it for other view

I have a table with many authorizations: (...) <% @authorizations.each do |authorization| %> <%= check_box_tag 'authorization_checked' %> <%= authorization.number_contract %> <%…
0
votes
1 answer

Consult don't work how I want

I created a refinanciamento and my show doesn't correct. show.html.erb

Nome: <%= @funcionario.pessoa.nome %>

Matrícula: <%= @funcionario.matricula %>

When I put…
Elton Santos
  • 571
  • 6
  • 32
0
votes
1 answer

Pass params for other method

When I make a search, my url result is: /refinanciamentos/index?utf8=✓&pesquisa_func_cpf=**111.111.111-11**&pesquisa_func_matricula=&commit=Pesquisar And after that show all search results, I click on button: <%= link_to 'Reserva',…
Elton Santos
  • 571
  • 6
  • 32
0
votes
1 answer

Consult replicating values on digit cpf

I have a search that when digit a CPF show all results. Ok, but I need that show this way: (Just a person and the quantity of contracts that it has) * My code is in portuguese, sorry Name Registry CPF Contract 1 ---- Show all contracts …
Elton Santos
  • 571
  • 6
  • 32
0
votes
1 answer

Error with collection_check_boxes

how resolve this error: SQLite3::SQLException: no such column: functionalities.profile_id: SELECT "functionalities".* FROM "functionalities" WHERE "functionalities"."profile_id" = 1 This is my _form.html.erb

Add functionalities

<% if…
Elton Santos
  • 571
  • 6
  • 32
0
votes
1 answer

No route matches [GET] "/users/assets/bootstrap.min.js" only in Firefox?

Firefox gives me this error when i try to sign in or sign up into my app, i am only working locally and i am using devise gem for this. After loading the form it cracks into this routing. The file bootstrap.min.js is in the stylesheets folder and…
0
votes
1 answer

ActiveModel::ForbiddenAttributesError only when creating a new record

I have upgraded my app rails version from 3.2.13 to 4.2.1 so When ever i am trying to create a new record i am getting ActiveModel::ForbiddenAttributesError I am using rails4.2.1. This my controller class CategoriesController <…
Anna88
  • 345
  • 3
  • 11
0
votes
3 answers

How build a breadcrumbs in rails 4

Seriously, I have no idea where to start. How do I implement a helper breadcrums without using gems? I tried some gems, but I preffer make a simple helpe. Exist someone or some tutorial? I not found this =/ Thanks!
0
votes
2 answers

field_for tag not showing anything rails 4

I started working on a rails app i want to add multiple image to my model. model/product.rb class Product < ActiveRecord::Base belongs_to :user belongs_to :category has_many :comments , dependent: :destroy has_many :product_images, :dependent =>…
0
votes
0 answers

Images in vendor directory not precompiling

I am using the DataTables library in my Rails 4.2.1 application. I have manually included all of the assets that are required including 1 js file, 1 css file, and 3 images. The js and css are properly precompiling but the images are not. Currently…
Steve
  • 836
  • 1
  • 9
  • 17
0
votes
2 answers

Singleton controller in Rails 4.2

I wonder how to create singleton controller in Rails 4.2. For example rails g scaffold Dashboard will generate dashboards_controller witch in my case has no sense because I need only one Dashboard so dashboard_controller is the thing I need. I see…
Wojciech Bednarski
  • 6,033
  • 9
  • 49
  • 73
0
votes
1 answer

Need help for setting association from multiple tables Rails4 mongoId

I have issue with setting association here while a Teacher sets his/her availability. A teacher can only set availability against the courses he/she is registered for. List of Courses in pre-defined from CourseType table. At time of teacher…
0
votes
1 answer

ruby `stack level too deep error` when trying to user order param

I'm trying to add a sort_by params to a rails app that uses Kaminari for paging. When add the param to the query I get a stack level too deep error. app/controllers/file_items_controller.rb class FileItemsController < AccountsController def index …
Antarr Byrd
  • 24,863
  • 33
  • 100
  • 188
0
votes
0 answers

Angular Cloudinary Rails

I am trying to use cloudinary with angular as per given example When page is loaded then I can see both console.log() printed, but when I am uploading a file then nothing happens. I am not getting any console error and no console.log() is printed…
Swapnil Chincholkar
  • 2,869
  • 3
  • 22
  • 22
0
votes
3 answers

gem 'country_select', github: 'stefanpenner/country_select' is not working with rails 4

I am using gem 'country_select', github: 'stefanpenner/country_select' in my gem file and in my form i have defined it like this: <%= form_for(@account_detail) do |f| %>
<%= f.label :city %>
<%= f.text_field :city…
Dinshaw Raje
  • 933
  • 1
  • 12
  • 33