Hi Victoria! Really nice article, I've used Sequel a bit in the past in scripts and it's a neat tool.
I love how you figured out a lot of things on your own, because I would have just used the sequel-rails gem which provides the rake/rails commands you mentioned. That's where ActiveRecord and Rails cheat a bit. AR doesn't really provide those commands, it's Rails that has them builtin.
One last thing, if you add ruby at the end of the triple ticks you can have syntax highlighting:
classDog<Sequel::Modelmany_to_one:persondefvalidatesupererrors.add(:name,"must be present")ifname.empty?errors.add(:breed,"must be present")ifbreed.empty?endend
Thank you for the tip on using Ruby! I know I can do that in markdown, but never connected being able to use it on here. 🤦♀️
I would have loved to use Rails on this project, but I was given specific instructions not to. I was forced to learn how to do everything "by hand" instead of having Rails do everything. It was an amazing opportunity and I learned a lot!
I would have loved to use Rails on this project, but I was given specific instructions not to. I was forced to learn how to do everything "by hand" instead of having Rails do everything. It was an amazing opportunity and I learned a lot!
Ooooh that's really great! :-)
Thanks again for the article!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi Victoria! Really nice article, I've used Sequel a bit in the past in scripts and it's a neat tool.
I love how you figured out a lot of things on your own, because I would have just used the sequel-rails gem which provides the
rake
/rails
commands you mentioned. That's where ActiveRecord and Rails cheat a bit. AR doesn't really provide those commands, it's Rails that has them builtin.One last thing, if you add
ruby
at the end of the triple ticks you can have syntax highlighting:Thank you for the tip on using Ruby! I know I can do that in markdown, but never connected being able to use it on here. 🤦♀️
I would have loved to use Rails on this project, but I was given specific instructions not to. I was forced to learn how to do everything "by hand" instead of having Rails do everything. It was an amazing opportunity and I learned a lot!
Ooooh that's really great! :-)
Thanks again for the article!