Search Results for "how-do-i-translate-database-content"
Lessons
Forum Threads

2 sites... 1 DB?
8
Rails
Hello all! It's been a while since i was here, but i am back!
So today I would like to get some opinions on a project I am working on. So here we go...
What would be the best way to architect 2/3...
Fugee Ohu replied

Introduction to Importing from CSV Discussion
46
General
thanks
HP replied

Deploy Ubuntu 14.04 Trusty Tahr Discussion
371
General
The following commands should be slightly modified:cap install STAGES=productioncap production deployI believe it should be the following:bundle exec cap install STAGES=productionbundle exec cap pr...
paul lahana replied

How do I tackle this 28-line scope?
2
Rails
Context: I'm working on a startup MVP that's received very little love in the way of refactoring. This has been the most complex codebase I've had to grapple with, and its been tons of fun figuring...
Chris Zempel replied

How do I allow a multi-select to be sortable?
0
General
I have a ton of many-to-many relationships in a CMS I built for work. I am currently using [Select2 3.5.3](http://select2.github.io/select2/) to assign these relationships. This all works well. ...
Thomas Bush posted

How to translate and localize apps with Rails Internationalization (18n) Discussion
18
General
This was really great, thank you! Can you provide a link as to what you need to sanitize the variable you passed in, name? Looking forward to the next episode!

Rails for Beginners Part 14: Handling Sign Up Errors Discussion
39
General
Love these Chris, noting some new tricks along the way. Plus your always positive demeanour makes this so enjoyable to go through.
Michael replied

Create little (parse data, formatting and counting) project
2
General
Hello, friends. I am a total newbie in ruby, I want to try to do the following thing: create a program that will collect vacancies and monitor the number of repeated words from them.
The structure ...
Solved

ActionText and Globalize error
5
Rails
Hi!
I have application which is using [globalize gem](https://github.com/globalize/globalize/) and i planning to start using ActionText. So, for example i have model called Business
```
class Busi...

How do I find a records based on contents of a has_many :through join?
8
Rails
I think I've been at this problem for too long and the obvious answer has evaded me.
Say you have students, classes (klass for ruby's sake), and enrollements as the join between them.
```ruby
cla...
Peter Marcano replied
Solved

Ruby question - Generating a nested hash with group_by
5
Ruby
I'm trying to create a nested hash. I have a hash with the year as the key and an amount for that year. hash = {2017 => 55000, 2018 =>55500, 2019 => 60000}
I need to divide the amount for...
Chris Oliver replied

Use coffeescript or javascript in rails form to grab model attribute
10
Javascript
I am working on a Rails app and need some help with coffeescript which I'm honestly not very good at.
I have a form with a field called location_id using a collection in Rails.
````
<%= f.grou...
shakycode replied
Solved

Single Responsibility Principle Discussion
25
General
Great series. I would love if you continue with this, plus with testing. Testing is something that you haven't really touched upon much here. Also with some design patterns that follow along w...
Aaron replied

How do I properly handle submit events in Vue + Rails?
1
Javascript
Hi!
I'm learning Rails, Vue and JS and I've got a question on the proper handling of submit buttons on Rails using Vue component to validate it. I'm using mdbootstrap for the styles.
I built a fo...
olidev replied

How do I handle Koala error
2
Rails
After watching [Facebook API and Auth Tokens with Koala](https://gorails.com/episodes/facebook-api-and-auth-tokens-with-koala), I decided to implement it. However, I made a mistake in my logic and...
Alexey replied

Disabling ActionCable for Unauthenticated Users Discussion
14
General
Hey Chris,I tried to integrate the meta tag if else statement into the group chat app in the channels/chatrooms.js and got "cannot read property `send_message` of undefined" error. It was surprisin...
Imallek replied

Optimizing Queries in Service Objects
9
Ruby
I'm currently building an app and using namespaced service objects containing a single call method in each class.
Below is an actual method (I'm aware the ABC size is too large, I'm wanting to get...
Jacob Montgomery replied
Solved

How is the Trix editor on gorails.com "Parsed with Markdown"?
9
General
I was considering implementing on my website the ability for users to switch between a markdown editor or the trix editor but then I noticed on this gorails.com editor (which appears to be Trix) it...
Sebastian replied
Solved

How to use ESBuild in Rails with JSBundling Discussion
30
General
This is awesome, I have been using it for a couple of weeks now. I didn’t necessarily think webpacker was slow, except maybe on Heroku builds. But when you use this, you wonder why you put up with ...
Aaron replied

How do I test different configurations which are set at Rails boot time?
0
Testing
I'm currently working on a fix related to an issue in spree commerce: https://github.com/spree/spree/issues/12231
To test the failing behavior before I apply my fix, I wrote a Rspec test like this...
Gerald Müller posted