General Ruby on Rails Forum
Can I assign dates to display a link?
1
General
Hello, I'm doing an application where I have to show a link. The administrative must be able to assign the date where it is displayed and hidden. Sorry for my English.
I think it's done with the ge...
Alex Musayev replied
Solved
Jekyll, MiddleMan or CMS for a blog site?
3
General
Hi guys,
I've build quite a few production apps now with rails and I'm embarking on my latest project which is a niche blog site. I guess going with rails is a bit of an overkill with this one so ...
Alan Reid replied
Solved
Streaming CSV Output to the User's Browser
2
General
Hello,
I'm referring to https://gorails.com/episodes/export-to-csv?autoplay=1
is there an easy way to add a function to actually stream the file contents to the User's Browser, like described her...
John Meehan replied
On Go Rails do you use any background workers for Stripe processing?
0
General
I'm trying to figure out if I should move some of the stripe payment processing and invoice lookups etc.. to background jobs. Any suggestions for a simple membership type site?
Here are a couple ...
Lance Williams posted
How do I create hierarchical data with a model?
3
General
I have found and played with awesome_nested_set which is _awesome_ for real. I was wondering if this is the recommended gem for managing tree data in Rails or if there are any others that would do ...
Chris Oliver replied
Solved
How do I avoid having duplicate rows in a has_many :through table?
3
General
I have a Center model and a Department model. The linked :through the Local model. However, I want to avoid inserting the same match twice in the Local table.
Do I use a validate statement or ther...
Félix Landry-Audet replied
Solved
How would I use cookies in a check_box_tag to maintain state between page requests?
2
General
I've created a multi filter widget using a search_field_tag, and multiple check_box_tags and I can't seem to figure out how to maintain the checked checkboxes state throughout the session. So for ...
Lance Williams replied
Solved
Saved messages as HTML
3
General
Hi Chris,
I'm wondering, on your episode https://gorails.com/episodes/message-templates, would it be possible to have one of the saved messages as HTML? I've tried entering ```testthis is a te...
Chris Oliver replied
Solved
Added last_read_at to chatroom_users_controller: No method error
11
General
Added the following to my chatroom_users_controller but keep running into a NoMethod Error.
```
def create
@chatroom_user = @chatroom.chatroom_users.where(user_id: current_user.id).first_or_cre...
Rob Sturcke replied
Avoid devise automatic sign-in after email confirmation
1
General
After email confirmation, devise automatic sign-in users, how configure devise to avoid that?
```rb
# devise.rb
Devise.setup do |config|
config.mailer_sender = 'noreply@secret.com'
end
```
```r...
Bruno Wego replied
How do I integrate Doorkeeper gem with a Multitenant SaaS Application?
0
General
So I have a Multitenant SaaS Application where users signup, pay, create an account and start using the service. Now I have received a requirement where this service needs to have a andriod client ...
Aniket Rao posted
GroupChat ActionCable Part 6 coffee and Chrome compatibility
3
General
Running into a strange error, everything works perfectly fine in Safari/Firefox. However, when launching in Chrome functionality completely halts after adding ```notifications.coffee```. Is there...
Chris Oliver replied
Solved
I'm building a widget that needs to dynamically load my html files (similar to an SPA)
0
General
EDIT: Solved
Masud Hossain posted
Solved
How return has_many with array instead of object
3
General
Have a way to a "has_many" return a array instead of object?
```rb
class UserSerializer < ActiveModel::Serializer
attributes :id, :name, :nickname, :image, :roles
has_many :roles
end
```
...
Bruno Wego replied
Solved
Multiple role based authorization
1
General
Hello friends, I have a handful of doubts in an interesting senario, I hope can give me a little help.
My application uses angular with [ng-token-auth](https://github.com/lynndylanhurley/ng-token-...
Jeremy Bray replied
What's the best way to install a robust system which checks if an event is over-booked in Rails?
1
General
I need to create a system for my Events site that monitors the number of bookings being taken to ensure an Event does not become over-subscribed. What is the most effective (DRY) way to do this?
...
Jacob Montgomery replied
Question on ActionCable Group Chat part 4, development.rb fix for redis
5
General
Saw in the comments the fix for ```(REQUEST_METHOD: GET, HTTP_CONNECTION: Upgrade, HTTP_UPGRADE: websocket)``` however I added the following to my ```development.rb```:
```
config.action_cable.a...
Chris Oliver replied
Solved
ActionCable Part 3: can't write unknown attribute `user_id`, what am I missing?
2
General
Having some trouble figuring out what I'm missing with submitting a message in the chatroom, I get the error for my ```messages_controller.rb``` saying that ```can't write unknown attribute `user_i...
Chris Oliver replied
Solved
Create a welcome page with a tour/get started
3
General
Hi, I was thinking of a way when the user login for the first time they get redirect to a welcome page where they take some steps into maybe a tour or fill some important fields to getting started....
Alan Reid replied
Solved
How can I allow my users to configure their account (created w/ devise) with their smtp server, so they can send & recieve emails in my app?
2
General
Are there any ruby gems for this specific problem? Or should I just use ActionMailer from Rails? If ActionMailer are there any tutorials on this topic online?
Drilon Buzuku replied
Solved