Data dodania Pytanie
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
2017-11-02 12:11 template.path_without_format_and_extension Not working in rails 3.0.3. Getting undefined method template »
I am using i18n in rails 3.0.3 and user have functionality to edit text. If user save text then it comes from database instead of en.yml file. I have ...
(1) odpowiedzi
2017-11-02 06:11 Heroku Not Receiving Seed Data from Rails App »
I deployed a Rails App to Heroku and the database migrated fine, except the db/seeds.rb file won't push to Heroku. I've tried running heroku run rake ...
(0) odpowiedzi
2017-11-01 12:11 Set a column data to another column in same model the rails way »
Is there any shortcut method to set one column data to another in same model? FYI I do know about for_each method in rails and I can implement that. ...
(1) odpowiedzi
2017-11-01 10:11 Bundler: `initialize': Read-only file system Gemfile.lock »
I'm running bundle install in a VM for an application in Ruby 1.9.3, Rails 3.0.20, Bundler 1.6.2, but it gives me this error about the gemfile.lock I...
(0) odpowiedzi
2017-11-01 07:11 Remove duplicates from multiple Mongoid Criteria of single collection »
I am performing some search operations on Manufacturer table and have couple of Mongoid::Criteria from them. I want to remove duplicates from them. ...
(0) odpowiedzi
2017-10-31 22:10 Rails nested models and child validation »
I have two models. Exemplary: class Book < ActiveRecord::Base has_many :pages, dependent: :destroy accepts_nested_attributes_for :pages, all...
(2) odpowiedzi
2017-10-31 16:10 Ruby remove empty, nil arrays strings from array of strings »
I have this array of arrays: ["[]", "[\"https://somewebsite1.com\"]", "[\"https://somewebsite2.com\"]", "[]", "[]", "[]", "---\n- https://somewebs...
(2) odpowiedzi
2017-10-31 09:10 SAML Authentication with Okta Identity Provider »
I have setup everything for saml authentication with Okta. By default it gives NameID as application username but i want to use employeeNumber. So i ...
(0) odpowiedzi
2017-10-30 08:10 Hi guys, i want to use work flow on rails, »
So i am using git hub references, but i cant install gem 'rails work flow', Error: while using command rake db migrate.This file is used to install my...
(1) odpowiedzi
2017-10-29 08:10 How to generate Modulus and Exponent for sgining XML doc ? »
I Want sign XML doc. I am doing following for generating signature(ruby). unsigned_xml = <<-xml <note> <to>Tove</to> ...
(0) odpowiedzi