Ruby on Rails Community Forum
Is possible to check boolean value by JS?
1
Javascript
In Rails 4 app i need to implement bootstrap modal when user comes for first time and accept the terms.
I'm trying to do something like this:
**application.html.haml**
```
...
= content_tag :body, ...
Chris Oliver replied
Resource on how to do filters with checkboxes
1
General
I'm trying to create a way to filter my User results based on these filters. I'm looking for a guide with example on how to do this.
http://image.prntscr.com/image/07e7113ac239436fa129fa874b5acfa...
Jacob Montgomery replied
`fresh_when` usage for dynamic queries
6
Rails
Hey!
I'm recently looking to use `fresh_when` method on my `PostController`.
```ruby
class PostsController < ApplicationController
def index
@posts = Post.published.order(published_at: :...
Alexander Popov replied
How to upload multiple file inputs in rails production?
8
Rails
Hi there,
I'm trying to upload multiple file inputs from single form. The form is working fine in development, but in production the form showing that redirecting for long time and returns nothing...
Jacob Montgomery replied
How do I mark content as "seen" or "read" when it's in the user's view?
3
Rails
Hi everyone,
I'm trying to mark messages as "seen" when the div has entered the user's view (for example, the Facebook behavior of seen posts). My current attempt is a mix of the Unread gem (https...
Ivan Raszl replied
How to delete records in a join table?
2
Rails
I'm using Refile for uploads and am having a tough time figuring out how to delete individual files. I need to display a delete link under each thumbnail, so my first thought was to do something li...
Adrian DeGus replied
Rail API Knock User Authentication
1
Rails
Application Strucutre
**Rails API**
user model & controller - CRUD
blog model & controller - CRUD
comments model & controller - CRUD
Standard Blog App with Knock Authentication for acc...
Chris Oliver replied
Why devise helpers are not available in application controller, except authenticate_user! ?
1
Rails
undefined local variable or method `user_signed_in' in application controller
but working fine in application.html.erb
if user_signed_in
layout 'admin_lte_2'
else
layout 'some_other_layout'
en...
Chris Oliver replied
Screencast Request: Unicorn vs. Puma
0
Site Feedback
I'd love to see a video describing the differences between Unicorn and Puma, and how to tweak the settings with them (process count, thread count, etc) to get the highest performance possible.
Matt Welke posted
[HATCH] Some questions :)
1
Rails
Hey there,
i have a few questions rg. your new product Hatch.
1. is there a Heroku-like way to insert a SSL cert or do we need to do that manually?
2. What permissions are we granting so you can ...
Chris Oliver replied
From the active cable chatroom series how to I fix the size of the chatroom and scroll
1
Javascript
I have implemented the chatroom but I want the chatroom area to be fixed and for the user to be able to scroll back through the messages.
How can I add scrolling? I have tried added it to the panel...
Chris Oliver replied
How should I implement a week model with days and opening times?
1
Rails
Hello,
I need a week model which contains all weekdays and every weekday has multiple opening and closing times.
For example, a barber shop is open on every monday from 9 a.m. to 11 a.m. and 1 p.m...
Jacob Montgomery replied
Building out a mini-framework with CoffeeScript
1
Javascript
A portion of the application I'm working on has a comments page with a form at top to add new comments and a list of comments beneath it. I've been working on using CoffeeScript classes to represe...
Chris Oliver replied
I didn't understand this part of the Liking Posts
2
Rails
```
<%= render partial: "likes" %>
```
we render something here, but where is this partial?
usually when I render something with Rails it's a form or other code that exist
but what are w...
Maor Tzabari replied
rails testing always raise the same error
2
Rails
No matter which test file does I run, it always raise this error.
I don't konw how to fix this, thanks!
```
$rails test test/integration/about_test.rb
Running via Spring preloader in process 524...
csko12 replied
How do I build a dynamic drop down menu in Rails with Simple Form?
1
Rails
I would like some help on how to build a dynamic dropdown menu with Rails Simple form.
I'm really new to programming so any help will be appreciated.
Many Thanks,
SS
Here is my Simple Form cod...
Chris Oliver replied
when use carrierwave to upload mutiple images in one product , the active_admin edit one product page error.
0
Gems / Libraries
I want to add or upload multiple images in one product, but after I implement this , the active_admin edit product page error.
in products_controller.rb, permit the images , which type is json `...
Larry Qu posted
error when i click on follow button ... Relationship is not working
0
Rails
All i am trying to create follow and follwers relationship and i am experiencing some issues. Chris i think you should create a course on this as well. i am getting issue undefined method `id' for ...
khemlall mangal posted
Actioncable production settings when using heroku + custom domain
1
Servers
So I built a website and pushed it to heroku production `example.herokuapp.com` and bought a domain to reroute example.com to show whatever is on `example.herokuapp.com`.
This all works great, exc...
Masud Hossain replied
After I submit(click) the form(submit input tag), the submit tag become disabled, how can I avoid this?
3
Javascript
The purpose is add product to cart, target is blank.
After I submit(click) the form(submit input tag), the submit tag become disabled, how can I avoid this?
I need it is always enabled for click....
Patrick Berarducci replied