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

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

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

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

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

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

Best Rails error monitoring software ?

7
General
Hi , I am working on a legacy application. I would like to add error monitoring tool for this application. It uses delayed job and other gems. I think Airbreak is the good one. Plese let m...
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

How do I Export a CSV file where it includes all the nested attributes?

16
Rails
Greetings: I would like to export a CSV file where it includes all the nested attributes. I have an invoice model and a product model. Each invoice has many products. I am able to export to CSV fo...
Solved

Bye bye Heroku 👋 welcome Hatch 🐣 Deploying my first app, few trivial question :)

1
Servers
Hello, Although I've been working with Rails for about 3 years now I was never resposible for deploying apps and dealing with servers – embarrassing, right? – apart from a side project I used Her...
Solved

Any good idea how to import CSV via Sendgrid email attachment and update model/database columns.

2
Rails
Basically receive incoming daily emails, with CSV attachment, then importing the CSV rows to your desired model/database. Anyone done this before? Thanks for any input.
Solved

Is there a torrent or similar to download all episodes?

9
Site Feedback
Hello, in the next month I will go on vacation. There is only very slow internet access and I want to use the free time to refresh my Rails knowlege. I know, I should just relax, but learning som...
Solved

How to add ssl to the CDN of AWS

1
General
Hi so I have a rails app with ssl from godadddy with a wildcard for subdomain. Now I move my assets to use CDN, but I need to use the ssl so all my subdomain use the assets with out getting CORS po...
Solved

Why after I switch controller and switch back again , the form submit button Failure?

13
General
after I switch the controller, and switch back, the form submit button Failure, if I refresh the page , it can works again. the console and network no error log.
Solved

How do I rollback a database migration and then update it

1
Rails
Hi I have added a column ( t.time "usual_start_time") to an exisitng table called Areas. (create_table "areas",) create_table "areas", force: :cascade do |t| t.string "location", ...
Solved

How can I subscribe a user when creating a new project?

7
Ruby
**How can I subscribe a user when creating a new project?** I'm having a hard time on the `create` method. Currently this is my code: ### Projects controller ```ruby def create @project...
Solved

Want to stay up-to-date with Ruby on Rails?

Join 89,509+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.