
local_time gem: Where to place the I18n file to modify the string literals?
3
Rails
EDIT. Finally solved, I pasted the keys from I18n.coffee into application.js like that:LocalTime.config.i18n["es"] = {
date: {
dayNames: [
"Domingo",
"Lunes",
"Mar...
Solved

Upload image and send email without saving to the database
1
Rails
I recently tried to implement summernote to my rails app. I can send email and everything works fine. But I want to upload image and send the email, but the email received shows that the image was ...

How do I display related or similar Ads by currency on the Ad show page?
1
Rails
Hi Chris I need your help on this please. I'm trying to display related Ads on the Ad show page by currency. But somehow my script displays the same Ad in multiples of related Ads and n...
Solved

How do i put Icon inside a text_field usind Rails and Slim
1
Rails
I'm new to Rails and even more to Slim. I need to put an Icon (i'm using Fontawesome icon) inside a f.text_field, but have no idea how.My code has: i.fa.fa-user.fa-2x
=f.text_field :name , p...

What is the best way to house view logic?
3
Rails
I have a view that is showing a list of steps. The steps are being pulled from the db with a status field.
There is a method that I've created that creates custom text based on the status, ie:
`...

new myapp
0
Rails
Hello!
Help me please!
I enter "rails new myapp", the terminal stops at this:
> "The dependency tzinfo-data (> = 0) will be unused by any of the platforms Bundler is installing for .bunler i...
Solved

[ActiveRecord::RecordInvalid - Validation failed: Blog must exist]
6
Rails
Hi,
trying to sort out this error for a while now, no luck.
I get this error above when adding a new comment for a blogpost. The blog is clearly there. Any insight would be much appreciated.
_...
Solved

How do I save the user_id by adding the mail?
1
Rails
How do I save the user_id by adding the mail?
For the relationship, you have to save the user_id, but to be more dynamic for the user, I want to the users search other users by the email and rails...
Solved

Active Storage (Rails 5.2) vs Shrine
2
Rails
In the aplication, users have to upload files, I plan to use Amazon S3.
Do you recommend using Rails 5.2 Active Storage, or using the Gem Shrine as explained in Gorails?
What do you recommend?

How to send different Plan ID's to Stripe?
1
Rails
I worked through the Subscriptions with Stripe video and got everything working fine, with a single Plan ID.
Now I'm trying to modify it to work with multiple Plan ID's to give my users payment op...
Solved

Rails Full_Calendar Implementation
1
Rails
I'm implementing `full_calendar` for my Rails app. I follow the tutorial which can be found on Youtube, **https://www.youtube.com/watch?v=NiTLuPqvt58**. I've changed some javascript code as below:
...
Solved

Rails associations
2
Rails
I'm create a Ruby on Rails web application. I have 4 models, which are User, Job, Candidate, ApplyingJob. User is the one who will be using the web application and the user can create Job and Candi...

How do I get all projects when the end date is exactly a weekly basis?
2
Rails
I have a project model with a start and end date.
I want to bring back all pojects that are exactly a week old, 2 weeks, 3 weeks etc
Is there a way to do this using a scope?
Thanks in advance

Database Relationship Structure (has_one and has_many together)
3
Rails
Hey Guys,
So I have a bit of a headscratcher here. I have a rails app which needs two relationships to what is the same table.
Basically, I have a Profile model. On that model I want to have one...

Embed Youtube video in Rails app
7
Rails
Hello.
How is possible to embed an existing video an show it in a page with rails?
I followed this guide with yt gem:
https://www.sitepoint.com/youtube-api-version-3-rails/
So now I can post a yo...
Solved

Best way to use common code for multiple applications ?
5
Rails
Hi all,
I would like to know the best way to use common code for multiple applications ? Basically I am working on two applications those two are build on top of third party APIs . I want...

add index to nested forms
2
Rails
Hi guys.
currently struggling to retrieve child index reference in nested forms.
I have my main form:
<%= form_for(resource, as: resource_name, url: registration_path(resource_name), html:...
Solved

Link_to error
2
Rails
Hi
I have my header in a partial which then appears on every page through the application template.
In the header I have an About link:
<%= link_to "About", 'about' %>
This works fine in ...
Solved

Exception/error reporting from live.
5
Rails
Hi
When my app crashes in live it would be nice to get emailed the stack trace/error info.
Does anything exist to do this?
I found honeybadger.io which looks about right but is this the best way...
Solved

Receiving incoming emails
5
Rails
I want to develop a software which has multiple emails against the brands, e.g Brand1 has email email1@gmail.com, email2@gmail.com, and Brand2 has emails email3@gmail.com, email4@gmail.com. So Cust...