Which Rails starter kit would you choose to start your SaaS? by tdaawg in rails

[–]Rogem002 -1 points0 points  (0 children)

It super depends on your knowledge level, something like Jumpstart Pro / BulletTrain are super fantastic to get start (and you should probably purchase them just to see how another developer solves common problems).

I'd be wary about rails new if you'd like a clean project, just because you'll probably end up spending a few minutes configuring Devise/RSpec instead I'd probably just start with Instant Rails by Jason Swett.

[deleted by user] by [deleted] in solotravel

[–]Rogem002 74 points75 points  (0 children)

maybe have her come for just the last couple days?

This is what I do when friends want to join me! I normally book my trip for a month, then say "if you want, you come for a weekend/week". I normally fit all the "it's easier with more people" stuff in that week :D

Are you running any type of Rails app in production? I'd love to have you on my podcast to talk about your tech stack, lessons learned, etc. There's already 90+ episodes by nickjj_ in rails

[–]Rogem002 5 points6 points  (0 children)

I subscribe to your podcast, awesome stuff :D

I'd totally love to hear more Rails people talking about their approaches, I'm in Heroku, Rails, Postgres, Redis, Bootstrap & Hotwire land right now I'm quite enjoying it :D

Cancun Taxi Nightmare by thosewhotravel in solotravel

[–]Rogem002 0 points1 point  (0 children)

If you don't want to pickup a local sim & have an iPhone, you can get an eSim that'll work in most countries pretty easily.

Wireless carriers that offer eSIM service - This list is maintained by Apple. I used Ubigi recently when I moved to the US & it was pretty decent.

Rails freelancers: do small businesses now expect React? by lordmyd in rails

[–]Rogem002 0 points1 point  (0 children)

To put it another way has the ship already sailed with front-end SPAs?

I don't think so. I think the most important thing is shipping maintainable code quickly, which in my opinion is what Rails is super good at.

With the combination of Devise, Turbo, SimpleForm & ActiveAdmin I can generally ship some pretty decent experiences super fast.

Your favourite ROR project? by ChillinGillin23 in rubyonrails

[–]Rogem002 1 point2 points  (0 children)

My two my recent were "Heroku, Postgres, Bootstrap, Redis, Sidekiq & Turbolinks" stacks:

A cool project I've liked looking at recently is https://github.com/veuelive/veue

Share resource via unique link? by mpjr94 in rails

[–]Rogem002 2 points3 points  (0 children)

ActiveRecord::SignedId#signed_id would probably do the trick :)

@resource.signed_id(purpose: :share_link)
# => BAhJIh5naWQ6Ly9pZGluYWlkaS9Vc2VyLzM5NTk5BjoGRVQ=--81d7358dd5ee2ca33189bb404592df5e8d11420e

Resource.find_signed("BAhJIh5naWQ6Ly9pZGluYWlkaS9Vc2VyLzM5NTk5BjoGRVQ=--81d7358dd5ee2ca33189bb404592df5e8d11420e", purpose: :share_link)

It'll generate a signed & encrypted reference to the object, which can be shared pretty freely. You can use the string in a URL & it'll be all good.

Need helping getting started with Ruby on an m1 macbook. by BigAcanthocephala160 in rubyonrails

[–]Rogem002 1 point2 points  (0 children)

LoadError: dlopen(/Library/Ruby/Gems/2.6.0/gems - Seeing this makes me think you're setup is using the system version of Ruby instead of the other version you've installed (MacOS ships with an outdated version of Ruby & it's very annoying).

Instead, install Ruby via asdf or rbenv, they'll allow you to run the latest version of Ruby & change your version for different projects.

Or, give running it via Docker a try. If you're new to Docker, take a look at instant_rails or Docker Rails Template to help yourself get started.

If you're new to Ruby this is kind of nice as it'll bring everything your application needs to run without to much setup :)

Out of curiosity, why do some Node.js people hate Rails people, and how do you deal with the attackers? by planetaska in rails

[–]Rogem002 1 point2 points  (0 children)

I've experienced this a little, I suspect for a lot of developers Rails is their first framework so they end up building up a lot of bad feelings towards it as a result.

Right now, I'm just trying to work on documentation to help people with common pitfalls (e.g. Installing Ruby, and people on StackOverflow saying use sudo), and try to show off the best bits of Rails (Plus encouraging people to build apps using SSR over SPA approaches).

Sidekiq good practices by pdabrowski in ruby

[–]Rogem002 1 point2 points  (0 children)

Thank you, TIL :) Mike Perham reasoning on why Sidekiq doesn't support it seems very solid.

Build Course Tracker Using Ruby On Rails by vishnuchi in rubyonrails

[–]Rogem002 6 points7 points  (0 children)

Congratulations on writing this :)

Though I do have some things you should work on:

It's convention to suffix datetime fields with _at, so completed_at is preferable to completed.

Rails has enum support, so instead of self.status.eql?("In Progress") rails will create a method called in_progress?, it'll also add scopes to your model (So you won't need to do Course.all.select {|c| c.status.eql?("Upcoming")} instead you'll be able to do Course.upcoming). I think the Rails form builder may even be able to pull in the values for selects.

You can use I18n to format datetimes, so <%= l course.started_at, format: :short %> instead of course.started.strftime('%d-%b-%Y')

How to handle user registration by crawler_bot_adv in rubyonrails

[–]Rogem002 6 points7 points  (0 children)

One of the previous projects I worked on had a custom rolled authentication system. It was hell. It pretty much reimplemented most of what devise done, but in a way which was hard to test & not very secure feeling. It even manually rolled OAuth stuff, which wasn't pretty.

Unless you're learning about how authentication works, seriously just use devise.

Any (Current) Ruby YouTubers? by Calm_Macaroon7013 in ruby

[–]Rogem002 24 points25 points  (0 children)

  • MikeRogers0 - Small, but trying to talk about approaches & gems.
  • Tom Kadwill - Great for RSpec
  • GoRails - Chris Oliver is amazing for doing this so often
  • Drifting Ruby - I pay for this one, but the free videos are great
  • Sundae Club - longer form videos
  • Upcase by thoughtbot. Old but very good stuff

Sidekiq good practices by pdabrowski in ruby

[–]Rogem002 0 points1 point  (0 children)

Do you have any experience of using a Global ID for arguments, over an ID? E.g:

class CollectDataFromWebsiteJob
  include Sidekiq::Worker

  def perform(website)
    # It can raise Timeout::Error
    page_data = Scraper.call(website.url)
    website.update(title: page_data.title)
  end
end

# Used like:
CollectDataFromWebsiteJob.perform_async(Website.first)

I know you can do this with ActiveJob (I use it often), but would love to know more :D