martinemde
martinemde@ruby.social
Posts
-
Post #2898119
@soulcutter @esparta I also have trouble thinking of exactly what problem could happen, but there’s a few specific cases in params (another is `path_params`) where there are certain special keys that can also be user supplied, allowing the dev to make assumptions based on docs that don’t actually hold true in the wild.
-
Post #2898118
@soulcutter @esparta what if it’s like? before_action :validate_access def destroy to_delete =Array.wrap(params[:_json] || params[:id]) … end def validate_access authorize Model.find_by(id: params[:id]) end
-
Post #2898117
🛎️ Bright Sunny `STUDIO` 🌞 – $0/mo Turn any CLI command into a one-room MCP server. Clean, compact. Move-in ready. `gem install studio` 🔗 https://github.com/martinemde/studio
-
Post #2898116
When I made MDPhlex I didn’t realize Rails 8.1 was adding native `to_markdown` convention. Make organized Markdown (like /llms.txt) generation easy with MDPhlex and Phlex components.
-
Post #2898115
@lucian i appreciate your level headed approach in Short Ruby to a messy situation. > first, reflect on your own perspective; second, consider all parties involved and their motivations; third, focus on identifying agreed facts and disputed details; finally, review all information with this context in mind to better understand the situation, even as it remains uncertain. Thank you for being a part of this community.