rafaelfranca on master
Prevent TextHelper#word_wrap fr… Merge pull request #34488 from … (compare)
rafaelfranca on master
Indent guides as rails help com… Homogenize rails help output I… Merge pull request #34085 from … (compare)
rafaelfranca on 5-2-stable
Merge pull request #34106 from … (compare)
A
references several other models B
, C
and so on. It goes from 1:1
, via 1:n
up to n:m
cardinality. Now, I would like to have a callback that I implement in model A
which tells me that an attribute in e.g. model B
changed. I would prefer to implement those hooks in the model A
to keep everything related to this in one place where it is maintainable. Is there any option to do this with rails-native callbacks? I only found solutions for adding and removing entities inside a relation but not if one of the existing ones changes. May you help me out? Thank you!
Hello, I'm using Rails / SPRockets,
For This File (application.js)
// = require libs/jquery-retina
// = require libs/jquery.popupoverlay
// = require libs/messg
// = require site_logic/application
// = require serviceworker-companion
// = require i18n
// = require i18n-rules
// = require lazysizes.min
// = require i18n
This file i18n.js doesn't exist in the current directory, however it's successfuly get into application.js
Hi guys! I'm trying to understand the magic of the preview mailer.
Can anybody give me a hint?
How this
url_for(controller: "mailers", action: "preview", path: "#{preview.preview_name}/#{email}")
becomes this ?
/rails/mailers/mailer_model/mailer_method
Routes are registered somehow but I cannot find how/where.
Thank you in advance! 🙂
rescue_from
, and no, changing the session store to ActiveRecord just for this is not viable
Error: Cannot find module '@babel/plugin-proposal-class-properties'
[HIRING] [REMOTE]
Job details:
We are looking for remote mid and senior-level software engineers to join our team!
We help tech companies scale by building software development teams on remote that are budget-friendly.
We have 40 open positions jobs available right now.
The engineers will be working directly with our clients.
Job Type:
Full-Time, 1-year contracts
Location:
Fully 100% Remote
We are looking for:
(List of Job Name with Primary Required Skill and Seniority Level)
Senior PHP Developer
Senior Fullstack Developer (Angular + PHP)(JavaScript)
Middle/Senior Fullstack JavaScript (MEAN) Developer
Senior Fullstack Developer (JavaScript)
Senior Node.js Developer
Senior JavaScript (NodeJS) Developer
Front-end React.Js developer
Full Stack Angular+Node.js (Mid+)
Senior React.js (Architect)
Middle/Senior Python Developer
Senior Java Engineer/Developer
Senior Data Engineer (Java)
Middle/Senior C++ Developer
Middle+/Senior/Lead DevOps Engineer
Senior DevOps Engineer (Azure)
Mobile/AWS Solution Architect (React Native)(JavaScript)
Middle DevOps (Azure+Python(Boto3))
Middle AQA (C#, .Net) (Automation QA (.Net))
Middle to Senior Automation QA (.Net)
Middle/Senior Automation QA (Karate)(Java)
Senior Automation QA (.Net)
Senior Manual QA (Blazemeter)
Senior Embedded Software Engineer
Senior Performance Testing Engineer (Automation QA)
Middle-to-Senior AEM Developer
Senior BA/System Analyst (Business Analyst)
Data Architect (DataScience)
Middle Ruby on Rails Developer
Senior Flutter Developer (Mobile Native iOS)
Additional Requirements:
Payment/Salary range:
€3000-€5500 monthly net
Apply now:
Send your CV with your info here:
https://forms.gle/mRa5aVYCpnHjLnrA9
@klepsydra: Hello and welcome !
You can specify it on the relation declaration, in the parent model: has_many :<children>, dependent: :nullify
Thanks @mtancoigne:matrix.org . I wrote a migration.rb file by hand:
def change
remove_foreign_key :babies, :parents
change_column :babies, :parent_id, :uuid, null: true
add_foreign_key "babies", "parents", on_delete: :nullify
end
I couldn't figure out if rails generate migration
had some options to do this from a shell command.