Comments (3)
Hi Lorin great job as always! Thanks.
from brick.
Oh interesting! If descrips
ends up nil
then on line 98 right before this it may write out to the terminal:
Caught it in the act for obj / status_id
or something similar. Would be great to see if that's showing up in the terminal.
Have added the orders_status
, orders_tax_status
, and inventory_transactions
tables to a Northwind database and set up the models like you have, and so far mine is working:
Because the word "status" is one of those that pluralises weirdly, I did try setting up an entry in the inflections.rb
file to see if that might be part of it:
# config/initializers/inflections.rb
ActiveSupport::Inflector.inflections(:en) do |inflect|
inflect.uncountable %w(orders_status orders_tax_status)
end
Ended up with a kinda similar error as to what you describe when rendering orders. Looking into pluralisation and such a bit further now.
from brick.
Heya @iatfrepo -- looks this overly-ambitious set of code designed to set @_brick_model when it is nil was preventing a couple of admin panels from working:
brick/lib/brick/frameworks/rails/engine.rb
Lines 670 to 671 in dcaa572
Have dialed this back (thankfully it was never a part of a release, only here in the unreleased code), and also added a little more resilience to #brick_grid
so that in the event the belongs_to descriptions are absent, it keeps going instead of having the error surface that you have seen. This has made its way into release 1.0.137 of the gem. To update an existing Rails project, you can run bundle update brick
and it should pull this newer version and put it into your Gemfile.lock
.
Thanks for your contribution!
from brick.
Related Issues (20)
- mysql connection fails, seems like it is trying postgres HOT 1
- Failed to generate migrations HOT 3
- Commands/ generators we can use with Brick HOT 1
- NoMethodError when generating ActionText::RichText table HOT 2
- An exploration of a custom take on a self-referencing JOIN
- How to use Rails 7.1 composite foreign keys along with Brick?
- How to determine SQL correlation names that will get chosen for an ActiveRecord relation
- ActiveStorage attachments can not be saved
- All Attributes in ERD? HOT 5
- Regression on Multi-Schema Postgres DBs HOT 3
- How can I use The Brick to try building a form?
- Floats are ints in forms HOT 4
- Question about multiple schemas in postgres sql db HOT 1
- "NoMethodError: undefined method `tr' for nil:NilClass" when running "rake db:create" HOT 6
- possible bug? HOT 5
- Issue in generate brick:models HOT 2
- Datatype citext is not recognised HOT 2
- Question about .select with .includes HOT 3
- Exception raised HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from brick.