Open hfjallemark opened 6 years ago
To answer a few of these:
lucky dev
come from? And what is the difference between that and lucky watch
It comes from Lucky CLI. Under the hood
lucky dev
finds a process manager like forego, foreman, overmind and then runsProcfile.dev
.lucky watch
is specific to a Lucky project and compiles and re-compiles a Lucky project when a change is detected. You'll see thatlucky watch
is inProcfile.dev
along with another process for compiling assets.
SEND_GRID_KEY
by default but the Heroku addon adds the following config vars: SENDGRID_PASSWORD
and SENDGRID_USER
which requires me to manually add a KEY too -- could this be simplified or is there a good reason for defaulting to an api key?
Mostly that I typically don't use Heroku add-ons for this and what SendGrid gives you is a key. I suppose to could use a password and user instead. Could you add this as an issue on Carbon so it can be tracked separately?
This should be better documented. It is for generating full URLs (for use in emails, webhooks). Lucky needs to know what domain to use for those.
user.customer_id = my_id
and not user.customer = my_customner
)?
Yes it is using the "magical field". I plan to make it so that you can do
user.custom = my_customer
. I just haven't gotten to it quite yet.
created_at
/ updated_at
not automatically saved?
It should be! If it is not, please open an issue on LuckyRecord
defer: ""
)
script defer: "true"
. Browsers ignore the 'true' but Lucky needs something to put there. I've considered allowing a list of Strings or something, but I'm not sure it is worth it:script attrs: [:defer]
ortext_input f.email, attrs: [:autofocus], class: "my-class"
. Any thoughts on that?
on
option.. e.g from the guide:
This should be shown in the guides, but maybe it is not clear. You can declare
needs
without anyon
option and it should always be required. If it isn't, please open an issue on LuckyRecord because that is a bug in the macro :)
I hope that helps answer some of those questions! Let me know if you have any thoughts or if I should clarify further on any of these points
Thanks for the answers,.
Mostly that I typically don't use Heroku add-ons for this and what SendGrid gives you is a key. I suppose to could use a password and user instead. Could you add this as an issue on Carbon so it can be tracked separately?
Added https://github.com/luckyframework/carbon/issues/13.
It should be! If it is not, please open an issue on LuckyRecord
Seems like it's not updating the updated_at
. Added https://github.com/luckyframework/lucky_record/issues/241.
script defer: "true". Browsers ignore the 'true' but Lucky needs something to put there. I've considered allowing a list of Strings or something, but I'm not sure it is worth it: script attrs: [:defer] or text_input f.email, attrs: [:autofocus], class: "my-class". Any thoughts on that?
W3 validator complains about defer: "true"
seems to be ok with just defer: ""
. I don't think it's worth spending any time on.
This should be shown in the guides, but maybe it is not clear. You can declare needs without any on option and it should always be required. If it isn't, please open an issue on LuckyRecord because that is a bug in the macro :)
Right, if I don't have any on
the field can't be nil
and I don't have to do author.try do |user|...
. But when I add on: create
it can be nil
... even when the form is in "create mode" (which shouldn't be allowed). Is there any way to enforce that it cannot be nil in on: create
and not even exist for the others? Not sure I am making sense here 😄
I am just getting started with Lucky (and loving it!) and noted down some items that I have run into that could probably be added to the guides. I will just list them all here and we can see which ones makes sense to move into the guides or fix/change in the libraries and which ones doesn't make sense at all 😄
lucky dev
come from? And what is the difference between that andlucky watch
SEND_GRID_KEY
by default but the Heroku addon adds the following config vars:SENDGRID_PASSWORD
andSENDGRID_USER
which requires me to manually add a KEY too -- could this be simplified or is there a good reason for defaulting to an api key?user.customer_id = my_id
and notuser.customer = my_customner
)?created_at
/updated_at
not automatically saved?defer: ""
)[ ] Form needs, how to truly require something when using the
on
option.. e.g from the guide: