Spaceman77

Activity Graph

Page 1 of 1

2019-03-18

[09:47:51] Spaceman77: has joined #RubyOnRails
[09:47:59] Spaceman77: Hello. I have an input form for two model objects. Let's call them model A and B. I have a requirement that if model A's attribute "Apple" is some value, then model B's attribute "Banana" should be present, otherwise there should be no validation.
[09:48:27] Spaceman77: Does rails provide some short-hand approach for condition-based validation?
[10:18:57] Spaceman77: Ping timeout: 246 seconds

2019-02-20

[12:29:58] Spaceman77: has joined #RubyOnRails
[12:30:42] Spaceman77: Why does running 'bin/rake db:create' also tries to compile the assets??
[15:04:43] Spaceman77: Quit: Leaving

2019-02-14

[07:18:04] Spaceman77: has joined #ruby
[10:07:08] Spaceman77: Ping timeout: 245 seconds

2019-01-11

[10:05:04] Spaceman77: has joined #RubyOnRails
[10:05:43] Spaceman77: I'm having an issue with rails' asset pipeline. I have some haml templates that i need compiled as html
[10:06:15] Spaceman77: I managed to do this by using Sprockets.register_engine
[10:07:10] Spaceman77: But after i changed some app settings, it doesn't work anymore
[10:07:14] Spaceman77: even after reverting the changes
[10:08:48] Spaceman77: what the heck
[10:09:04] Spaceman77: rails takes my haml files, compiles them to html, and leaves the extension as .haml
[10:14:39] Spaceman77: No, i need to precompile some assets(error pages)
[10:15:10] Spaceman77: I need localisation support and stylesheets, even when rails is broken
[10:15:21] Spaceman77: so i have hooked into the precompilation process
[10:16:00] Spaceman77: and i generate the error page views whenever i precompile
[10:27:00] Spaceman77: Rails adds wrong file extension for precompiled assets, help :(
[11:04:52] Spaceman77: Ping timeout: 246 seconds