Ruby on Rails Community Forum
Sperate views for differernt category
0
General
I have a rails blog with categories and I'd like to create a seperate partial for each category. Can anyone help?
Brijesh Wawdhane posted
Testing against multiple versions of Ruby, Rails, and Databases with GitHub Actions Discussion
0
General
Rails for Beginners Part 31: Tweet Partial Discussion
2
General
Hi Chris,
in video at 4:00 in tweet model. You use self.publish_at in after_initialize but only tweet_id? in published?
Why is one with self and other is not with self?
Jaroslav Horák replied
calculate leaves on yearly basis
0
Rails
Employee is allowed 15 leaves in year for example. My function is calculating the total leaves of allover . But I want to calculate the since joining date and when year is complete since joining da...
Ahmed.zain posted
RemoteFX Multi-user Login or alternative for better graphic performance?
0
Servers
Hello,
We are running a "Windows Server 2016" VM inside a "Windows Server 2016" Hyper-V Host. Remote Desktop Session Host is enabled, User CALs installed and the Multi-user login works fine. On t...
sun18 posted
Rails for Beginners Part 22: Password Reset Update Discussion
5
General
How do we invalidate a token once it's used? For example you can still use the same token even after you've already reset your password once. That would be nice to implement but not sure whether it...
Smail replied
How HTTP Requests work in Rails Discussion
0
General
Rails for Beginners Part 35: Editing Tweets Discussion
2
General
Guess I spoke before going through all the lessons, thanks
Rails OPPS
0
Rails
How to implement opps concepts in rails can you explain that
Ari posted
I aim to improve my english in exchange for teaching rails
3
Rails
hi all! I aim to improve my english. i have been working with rails since 2009. would anyone been interested in learning to develop with rails in exchange for helping me with english?
Johana Weber replied
ActiveJob Deserialization Error that doesn't make sense
3
Rails
I have a Ruby/Rails application deployed on AWS ElasticBeanstalk and I use Sidekiq with Redis to handle all of the background jobs.
My app has events that users can create and there's a job that ...
Marc Köhlbrugge replied
Rails 6 autocomplete with add new
2
Rails
In the past (back in rails 4) I used select2 or selectize to give me the ability to make a text field autocomplete as typed and have the option to create a new item, so basically tagging but only a...
Routing Inbound Emails with Actionmailbox Discussion
3
General
Loved the nifty regx trick.
Also liked the
```
if(user = User.find_by(....))
user
else
...
end
```
Didn't know you could define values in if statements and use them to return, will definately be...
Chris King replied
Using Ruby Service Objects To Refactor Your Rails Code Discussion
21
General
Very nice video Chris! I really like the idea of breaking things out into POROs. I think the next refactoring I would do to this app is making a Subscription class to house the logic for adding and...
hamza-itu replied
rake assets:precompile - JSON::ParserError
2
Rails
I'm looking for assistance with a mysterious `JSON::ParserError` that is popping up while attempting to build a legacy application with minor upgrades (Rails 3.22 -> Rails 5.2.6). It seems to be...
Weston Ellis replied
Missing template with Stimulus-autocomplete
0
Rails
Hi,
I am trying to use [Stimulus-autocomplete](https://github.com/afcapel/stimulus-autocomplete)
following [this tutorial](https://itnext.io/search-autocomplete-stimulus-4e941df54d39)
But I get thi...
Benjamin Joseph B. posted
How do I learn to write dry code?
1
Ruby
I've been learning RoR for a year now and have a basic functioning site that people actually use, but my code is not even close to dry... it's probably wetter than the Amazon! Once you have the bas...
Sharing on social network
17
General
What is the best way for the visitors of my page (not logged in) to share models data (for example articles and courses) on Facebook and Twitter.
I have been looking for an answer without really fi...
Setup Ubuntu 21.04 Hirsute Hippo Discussion
6
General
Great guide as always! However, I believe that postgresql is now at version 12 and that 'sudo apt install postgresql-11' will return an unable to locate package error, I would suggest using 'sudo a...
Devon Kiss replied
Setting up Customer Support models with Hotwire Discussion
3
General
It's for useful episodes like this, that I'm here since 2014. Super thank you!
magico replied