undefined method `minimum' for #<Store:0x00007fb25c749b20>
It works!
I had to add a form_for block in the view and pass the pricingclassification object.
<%= form_for :pricing_classification do |f| %>
<%= f.label :pricing_classif...
Samantha O
replied
β’
Solved
2
General
How do I add ranges to my application?
Not off the top of my head, but I can make a screencast on it. π
Chris Oliver
replied
β’
Solved
7
Ruby
Do I need the jumpstart gem embedded in my application?
You need to keep it. It manages the configuration. π
Chris Oliver
replied
β’
Solved
2
General
How do I create a duplicate with associations included?
hi, it's really helpful. i also have a case like this, its a quotation and invoice.
does the steps, also copy the association or just the id and refer it to the tasks from previous project?
thanks.
msalsabil
replied
β’
Solved
9
Rails
"NoMethodError: undefined method `deep_symbolize_keys'" when trying to deploy my application
David McDonald
replied
β’
Solved
3
Rails
What's a good way for upgrading a server?
And glad it's been so helpful! This is the community I wish I had a long time ago, so that's great to hear!
Chris Oliver
replied
β’
Solved
5
Servers
User model guidance
Hey Stephen!
The way I do it in JumpstartRails.com is we have a single User everyone logs in as and they have multiple Accounts they're associated with.
Each account could have a type of Coach, ...
Chris Oliver
replied
β’
Solved
2
Rails
ActionController::Parameters.new.require(:person)
I ended up also disabling wrap_parameters: wrap_parameters format: []
So now I can simply do params.permit(:id, :name, :age).
Not sure if there is a better way.
Penguin
replied
β’
Solved
2
Rails
Nested Parameters returns ActionController::Parameters rather than parameter value
Yep, that's the built-in way. Sounds like your code doing the validation is strict about what type of object it is (a Hash) and that's the part that's not very Ruby-ish.
Chris Oliver
replied
β’
Solved
6
Rails
How do I create a delete button for images uploaded with Active Storage
Is it working properly?
```
@space_image = ActiveStorage::Blob.find_signed(params[:id])
@space_image.purge_later
```
I've found this way doesn't work correctly β the image still connected (.attach...
Dmitriy
replied
β’
Solved
3
Rails
How do I show a query result in browser in excel/sheet style?
In our application we generate several reports. Instead of downloading them as Excel or CSV want to render them similar to Excel/Google sheet
anyone any ideas what the best approach is?
Peter vande Put
posted
β’
Solved
1
General
Question about twitter clone
Hey Rick,
Absolutely. If you can imagine it, you can build it. For following hashtags, you'd want to create a model for the Hashtag and then very similar to following users, you'd create a model t...
Chris Oliver
replied
β’
Solved
2
Rails
Gem for making user groups
Typically I just create a model called Group and a model called GroupUser that keeps track of which user is in which groups.
No gems for it that I know of since everyone tends to implement it dif...
Chris Oliver
replied
β’
Solved
3
Rails
CRUD on attribute in N/N join table
`has_and_belongs_to_many` does not allow you to access the join table, and therefore it's very rarely used.
Instead, you just want to define a `has_many :through` association.
```ruby
class User
...
Chris Oliver
replied
β’
Solved
4
Rails
Best Practices for storing API Keys, DB user / passwords, etc...
Hey Craig!
Check out this episode on Rails credentials. This is what I strongly recommend as all your credentials are easily organized and encrypted. Then in production you only have to set RAILS_...
Chris Oliver
replied
β’
Solved
2
Rails