Data dodania Pytanie
2017-06-16 21:06 How can I make follow form work with a list »
I have a relationship model that follow users back n forth now it works very well when I use it in users#show in my view just like this screenshot ...
(0) odpowiedzi
2017-06-16 14:06 Rails 3 #update_attributes »
I'm working on a Rails 4 app that was previously upgraded from Rails 3. I haven't worked much Rails 3 before. I came across this something like this u...
(2) odpowiedzi
2017-06-16 06:06 Getting error while migrating db in ruby on rails project on windows 7, with ruby 2.3.3 and rails 4.2.5.2 »
I am getting below errors on prelauch project on github. I have install postgres db but i am not getting which gem is having PGconn , PGresult and PGe...
(0) odpowiedzi
2017-06-15 13:06 Ruby on Rails - Security Notifications »
I'm working on a project with ROR framework and the gem "Devise" for the authentication. Actually i have 3 model of users : User Admin Company I ...
(0) odpowiedzi
2017-06-15 09:06 Put gem class into namespace »
To my Rails Gemfile I added a new gem. It is used like this: Email::Client The issue I'm having right now is that I also have a class in my rails a...
(1) odpowiedzi
2017-06-15 04:06 rails cannot create a new item »
I am working on creating a small rails app, and I have ran into a problem that I believe is in the backend of my database, but I don't know how to sol...
(3) odpowiedzi
2017-06-14 17:06 How to cache a ActiveRecord model object which contains carrierwave uploader to Redis »
I have a user model which has a carrierwave uploader for storing ths users profile picture class User < ActiveRecord::Base mount_uploader :pro...
(1) odpowiedzi
2017-06-14 15:06 Why Page and Action Caching has been removed from Rails 4? »
Why Page Caching and Action Caching are removed from Rails 4. How do we achieve the caching now after Rails 4 ? ...
(0) odpowiedzi
2017-06-13 22:06 Include select scope in outer join includes »
Rails 3, I want to include a select scope in a join clause. Here's the code I have: require 'logger' require 'active_record' require 'pg' ActiveRec...
(0) odpowiedzi
2017-06-13 14:06 How can I create ActiveRecord for the following sql »
How can I create an ActiveRecord Query for the following Sql query SELECT device1.* FROM devices device1 WHERE device1.id = (SELECT MAX(device2.id) ...
(1) odpowiedzi
2017-06-13 09:06 How to validate email is real or fake in Rails? »
I have a problem I need write validator in rails to checking an email is real or fake? I try to research but nothing. Can someone help me? Thanks ! ...
(3) odpowiedzi
2017-06-12 23:06 My User_id is updated to nil every time I refresh my page in Rails »
I know what is causing this issue, but can't find the working alternative of it. I will describe the problem and hope for a good answer. So, I have ...
(0) odpowiedzi
2017-06-12 17:06 Getting all users from db that participated for an activity »
I am currently facing the following problem: Users are able to create activities. Other users have the possibility, to participate the activity. I now...
(1) odpowiedzi
2017-06-11 19:06 Subscription class not found 'MyChannel' in ActionCable »
I am facing a problem while working with Action Cable, whenever I run my program I receive an error that says Subscription Class not found Conversatio...
(2) odpowiedzi
2017-06-08 10:06 Where is Capistrano retrieving the IP Address from? »
I have to deploy a rails app after the server had a problem, and the IP Address has changed. I've updated the IP Address in deploy/production.rb, and...
(1) odpowiedzi
2017-06-07 16:06 unable to redirect to a custom action in devise registrations controller »
Excuse me for the noob question. I have a devise users model and i want to save additional data to the users model after a user signs_in/signs_up. r...
(1) odpowiedzi
2017-06-07 14:06 Ruby on Rails Michael Hartl chapter 9 Test fails »
I was finishing up Chapter 9 from the RoR Tutorial and I was running the last test and a Failure showed up from the code which ran green in the previo...
(1) odpowiedzi
2017-06-07 07:06 Rails 3.2 : Duplicate entry for key index in mysql? »
I am using rails 3.2. Here! I am facing a problem, stats below. I am having two model classes RequestedTrip and TagTrip. Here! are two other models R...
(1) odpowiedzi
2017-06-06 17:06 Rails 3 Devise. Admin can't change user data »
I'm using gem Devise. I created model User and added a new field 'admin'. If user is admin he can change data other users and he can make other users ...
(0) odpowiedzi
2017-06-06 15:06 Rails app can run locally, but cannot deploy in Heroku website. Heroku shows The page you were looking for doesn't exist »
I'm very new to rails. I want to deploy my Rails app to Heroku account. The rails app runs fine locally, but if I go to Heroku web(By clicking domain ...
(0) odpowiedzi
2017-06-06 01:06 I can't migrate the database of my Rails app on Heroku with sqlite »
I'm following this tutorial on creating Ruby on Rail apps, and I've hit a roadblock. I am trying to migrate its database to Heroku, only to be told th...
(2) odpowiedzi
2017-06-05 14:06 Why is #create failing on this FactoryGirl object? »
I am trying to test the Quotes#create controller action but am having trouble understanding a failure. I am using Devise and FactoryGirl and the Quote...
(1) odpowiedzi
2017-06-05 08:06 Access selected column from Model1 to Model2 »
I am currently doing a project and we're using some gems such as: rails admin, devise, cancancan and ability. I have 2 tables. ActivityItinerary and...
(0) odpowiedzi
2017-06-05 07:06 Rails: Duplicate index occurs when I am creating object using find_or_create_by »
there is a before_save callback in model one, in which I am trying to create/update record using find_or_create_by. There is another after_update call...
(0) odpowiedzi
2017-06-02 15:06 Messenger bot using Rails: setup for multiple pages »
I want to create a Messenger Bot used by different users for their Facebook pages. I created a rails app and use the facebook-messenger gem. I succes...
(0) odpowiedzi
2017-06-02 15:06 Bootstrap in rails app works only with .scss »
I am currently learning Rails and working on a simple SocialMedia/Blog app. I am at a point where I have a basic view set up and am attempting to appl...
(2) odpowiedzi
2017-06-01 22:06 Rails scope where clause appears to be cached »
Using Rails 3.2.22.5, Ruby 2.0.0-p648, I have this query, which among other things is supposed to return patients less than 18 years old: scope :shou...
(2) odpowiedzi
2017-06-01 16:06 Rails: Changing name for a button »
I'm creating a database website using rails. I implemented where a user can upload an image. There are two places where you can upload an image, one f...
(2) odpowiedzi
2017-05-31 11:05 Ruby on Rails: Anything selected with 'joins' is readonly »
So we're having some difficulty with the readonly? method in activerecord classes. It appears that anything fetched with a call to joins is being set ...
(0) odpowiedzi
2017-05-31 09:05 create new crud in rails application using activeadmin »
i am new in ROR. and install an gem for admin dashboard named as activeadmin, but now i want to create more curd in that admin gem . i cannnot use sca...
(3) odpowiedzi
2017-05-31 06:05 Unable to connect to database from rails console on dockers »
I have my rails project setup on Digitalocean using Dockers. This is my docker-compose.prod.yml file. version: "2" volumes: db-data: external: f...
(1) odpowiedzi
2017-05-30 20:05 Best practice for Rails setup w/ Docker on a Windows machine »
I am brand new to Rails and Docker, and am looking to develop a website that runs on Rails and deploys to Production with the help of Docker (likely t...
(2) odpowiedzi
2017-05-30 07:05 How to change the url for Home and Dashboard buttons in Rails admin? »
Is there any configuration to change the default URL for home and dashboard buttons in rails admin (top navigation) ? I did some thins like this but ...
(1) odpowiedzi
2017-05-30 01:05 How to set up error messages of associated model? »
Hello rails community! I have booking_post model that has_many reservations. class BookingPost < ApplicationRecord has_many :reservations, de...
(1) odpowiedzi
2017-05-29 04:05 How to redirect a page on successful sign in rails devise and after verify user== "teachers" »
I want to redirect to a specific page on a successful sign in. Can anyone can advise me how to redirect after verification (userid == teacher). If use...
(2) odpowiedzi