Data dodania Pytanie
2017-11-25 15:11 Bootstrap starter template navbar toggler keeps rolling up »
I'm using bootstrap starter template and when I'm using it on mobile, the navbar toggler rolls up immediately once a user clicks on the button. Causin...
(0) odpowiedzi
2017-11-24 22:11 How to create a encrypted linux container to deploy web application on external server? »
I need to deploy a Rails application to client's on-premises server and I want to prevent the viewing and modification of source code. Client has phy...
(0) odpowiedzi
2017-11-24 21:11 My "Delete Comment" function from my Ruby on Rails Blog Website doesn't work and I don't know why »
My "Delete Comment" function from my Ruby on Rails Blog Website doesn't work and I don't know why. Here is my error: Routing Error No route matches...
(0) odpowiedzi
2017-11-23 17:11 Getting Format in Mailer View in Rails »
In my Rails app, I use a method in my Mailer views for creating a link that takes a format param based on whether it's in html or text format. mailer...
(1) odpowiedzi
2017-11-22 16:11 File to import not found or unreadable: bootstrap3/bootstrap/mixins in rails 3.2 »
I get this error "Sass::SyntaxError in Users#index" when the submit button in clicked and next page is loaded. I have used Ruby - 2.2.4 and Rails - ...
(0) odpowiedzi
2017-11-22 08:11 Rails. Dropdown1 enables Drobdown2 selection using Ruby on Rails »
I have two DropDowns (say DropDown1 and DropDown2) in my _form.html.erb. Here is the _form.html.erb's code (Where I need assistance); <div class...
(1) odpowiedzi
2017-11-21 20:11 Ruby on Rails - buttons position on a blog website - SASS »
I want that my "New post" and "Log out" buttons from my blog website to be in the right side of the header. But they are in left, under the "All posts...
(1) odpowiedzi
2017-11-21 17:11 Why is the instance variable accessible in form_for in HTML? »
This is my controller code: # users_controller.rb def index @users = User.paginate(page: params[:page]) end def show @user = User.find_by id: pa...
(0) odpowiedzi
2017-11-21 13:11 Finger Print Digest not appending with image path in Rails 3.2.22.5 »
I have a css class declared in a CSS partial named '_city-images.css.scc' : .city-art { background: url(image-path('cities-images.png')) no-repeat...
(2) odpowiedzi
2017-11-20 19:11 Why my delete post function doesn't work? »
I was trying to make a simple blog application using Rails. I added function like "creating a new post", "edit a post" I wanted also to add a delete f...
(1) odpowiedzi
2017-11-18 20:11 angular4 and rails as backend athentication »
I have an application in rails 3 which uses 'authlogic' gem for authentication. I want to integrate angular4 as front-end how to handle the authentica...
(0) odpowiedzi
2017-11-18 12:11 rails adding /admin to routes when admin logs in »
In my project I have a users model and an advertisements model. The users model contains the admins too. I want to set routes such that when an admin ...
(2) odpowiedzi
2017-11-16 14:11 Problems setting development environment »
I have a rails 3 app working in a development environment using tmuxinator. like this: for running the server: RAILS_ENV=development bundle exec rai...
(0) odpowiedzi
2017-11-16 11:11 ActiveRecord::SerializationTypeMismatch: attribute was supposed to be a Hash, but was a String »
To get a hash I have this: serialize :colors, Hash But I have an error where it the result of this attribute looks like this: To show this I took ...
(1) odpowiedzi
2017-11-15 15:11 Rails 3 association between two same name models »
I have two rails models. The Class name of both models is A, but one model is inside a module Manage. a) Class Manage :: A b) Class A I want to cre...
(0) odpowiedzi
2017-11-15 12:11 404 error message for a specific word in subdomain »
I am displaying different websites depending on the venue name. Etc. venue called "badbooking" then the url will be badbooking.school.com, but if the ...
(0) odpowiedzi
2017-11-15 01:11 Rspec testing fail strong params »
Trying to get this one to pass for a while, not that familiar with Rspec, tried couple answers, and no luck yet, I have these two parameters being req...
(1) odpowiedzi
2017-11-14 21:11 How to get unique/distinct values in included in render json »
I'd like the instituciones values to be unique/distinct when rendering profesionales. The model is as shown: class Profesional < ApplicationReco...
(1) odpowiedzi
2017-11-14 07:11 Uncaught TypeError: $(...).datepicker is not a function in ruby on rails 3 »
Hi I am trying to show date picker icon near the date input field. When i am loading the screen, the date picker not showing. And it shows " Uncaught ...
(0) odpowiedzi
2017-11-13 12:11 Stripe payment with rails »
I'm looking for a way to send money from my stripe account to someone's debit card. Does anyone know of an API that allows me to do this? I am use str...
(1) odpowiedzi
2017-11-13 10:11 How to routes to a specific controller with a variable value ahead of it in rails 5? »
Normally its like: resources :users To keep a value ahead we can do like scope :url do resources :users end but, issue is that I have the just ...
(1) odpowiedzi
2017-11-13 08:11 Implement directory system in rails »
I want to implement directory system in my rails app. User will have some abilities to manipulate directory. Create new folders and delete them. Use...
(0) odpowiedzi
2017-11-11 22:11 undefined method `find_by_friendly_id' with FriendlyId gem and Rails 5.1 »
I want to prevent selecting user with his id and that's why I am using this method which should work in this way, but instead I am getting this error:...
(1) odpowiedzi
2017-11-11 10:11 Integrate instamojo api in rails app »
I am learning payment gateway integration in rails. I chose insta mojo and was working but the documentation they provide is very inconvenient and har...
(1) odpowiedzi
2017-11-10 15:11 How to create Mysql test database in dockerized Rails application? »
I managed to dockerize my existing Rails application running on a Mysql database. But I wonder if it is possible to setup docker-compose to create the...
(2) odpowiedzi
2017-11-09 17:11 Gem Load Error is: uninitialized constant Haml::Util::Sass »
I shift from ruby from 1.9.3 to 2.2.5. Then this error occur while loading rails_admin gem. full error trace is below /home/kashif/.rvm/gems/rub...
(0) odpowiedzi
2017-11-09 16:11 Connection reset by peer - SSL_connect -> Only when logged in (devise, cancan) »
I am a total newbie regarding devise and cancan and I am very lost and need at least a tip where to start. I have undertaken a ruby on rails app. I c...
(0) odpowiedzi
2017-11-09 15:11 Ruby on rails big decimal value format not correct »
Big Decimal not showing value in numbers a = BigDecimal.new("100.55") a = * a * a puts "big decimal #{a}" output big decimal [#<BigDecimal:ad5...
(1) odpowiedzi
2017-11-08 18:11 Creartor must exist error Ruby on Rails »
I have two models, issues and user User: class User < ApplicationRecord has_many :created_issues, :class_name => 'Issue', :foreign_key =&g...
(2) odpowiedzi
2017-11-07 18:11 Rspec Testing : NoMethodError - undefined method 'id' for nil.Nilclass »
When I am running rspec testing for a controller in Rails, I get the error "NoMethodError : undefined method 'id' for nil.Nilclass" at the second line...
(1) odpowiedzi
2017-11-07 09:11 Best way to define Constants in Ruby/ RoR at one place »
I have multiple classes (4-5) using same constant value, say PI = 3.14. What is the best way to define that constant at one place in Ruby and in RoR ...
(3) odpowiedzi
2017-11-06 18:11 Spawning new threads in Rails 3 / Phusion Passenger »
I'm working on a Rails 3 app (running on Phusion Passenger) that is spawning new threads in a method. Will those threads live in the process that spa...
(1) odpowiedzi
2017-11-03 18:11 React::ServerRendering::PrerenderError in... Rails 5, React »
I am using Rails 5 with react-rails gem. I want to use server-side rendering, but I see this error: React::ServerRendering::PrerenderError in Home...
(0) odpowiedzi
2017-11-03 18:11 Rails 'partial not found' masks underlying error »
I encountered a sporadic error, ostensibly because Rails sometimes could not find a partial. However, because of the way the error only showed up in c...
(0) odpowiedzi
2017-11-02 17:11 Can't mass-assign protected attributes: participant [FIXED] »
RoR beginner here. I think I am very close to finish this project but there is this problem. How can I update the function of a person? And why does ...
(0) odpowiedzi