Rohit Joshi

Rohit Joshi

I am a Ruby on Rails developer with over two years of experience, most of which is working remotely. I am a typical Punekar and in my free time I play badminton, workout, go trekking and I like to interact with people. Feel free to slide into my DMs and say Hi! 😄
• authorImg Rohit Joshi

Rails 7 Arel adds support for FILTER clause

Rails 7 Arel adds support for FILTER clause
• authorImg Rohit Joshi

Rails 7 adds `config.action_text.attachment_tag_name`

Rails 7 adds support for setting `config.action_text.attachment_tag_name` to replace the actiontext's default attachment HTML tag name to a custom string.
• authorImg Rohit Joshi

Rails 7 allows anything that responds to `#to_str` into redirect_to

Rails 7 adds support for redirecting using any arguments that respond_to `#to_str`.
• authorImg Rohit Joshi

Rails 7 allows access to nested encrypted secrets by method calls

We can now access nested secrets stored in credentials.yml.enc using the dot (.) syntax instead of using [ ]
• authorImg Rohit Joshi

Ruby 3.1 Enumerable#tally now accepts an optional hash to count occurrences

Ruby 3.1 extends the functionality of the Enumerable#tally method introduced in Ruby 2.7. We can now pass another hash whose counts would be added to the resulting tally hash.
• authorImg Rohit Joshi

Rails 7 transforms a Ruby hash into HTML attributes for ERB interpolation

Rails 7 adds `tag.attributes`, which transforms a Hash into HTML Attributes, ready to be interpolated into ERB.
• authorImg Rohit Joshi

Rails 7 adds #excluding to ActiveRecord::Relation

Rails 7 adds #excluding to ActiveRecord::Relation to exclude a record or collection of records.