sevenseacat

Activity Graph

Page 1 of 582 | Next »

2019-07-01

[01:30:50] sevenseacat: has joined #elixir-lang
[01:30:50] sevenseacat: has joined #RubyonRails-offtopic
[01:30:50] sevenseacat: has joined #RubyOnRails
[01:57:16] sevenseacat: so order belongs to order status then
[01:57:27] sevenseacat: if order has an order_status_id field on it
[02:17:48] sevenseacat: bits of vuejs atm
[02:27:13] sevenseacat: it could be worse. i'm still not a fan though
[02:30:23] sevenseacat: the problem I find with most tutorials is that they assume nice new pristine apps
[02:31:06] sevenseacat: when I'm trying to figure out how to use vue in a 6yo rails app, they don't really work lol
[08:48:02] sevenseacat: you misspelled inspect.

2019-06-28

[01:45:02] sevenseacat: has joined #elixir-lang
[01:45:02] sevenseacat: has joined #RubyonRails-offtopic
[01:45:02] sevenseacat: has joined #RubyOnRails

2019-06-26

[01:14:12] sevenseacat: has joined #RubyOnRails
[01:14:13] sevenseacat: has joined #elixir-lang
[01:14:13] sevenseacat: has joined #RubyonRails-offtopic
[01:42:19] sevenseacat: can you show a specific example?
[03:35:24] sevenseacat: what does it get?
[05:53:50] sevenseacat: Quit: My Mac has gone to sleep. ZZZzzz…
[06:04:10] sevenseacat: has joined #elixir-lang
[06:04:10] sevenseacat: has joined #RubyonRails-offtopic
[06:04:10] sevenseacat: has joined #RubyOnRails
[06:23:48] sevenseacat: if you have a question about it, just ask
[06:26:08] sevenseacat: you'd typically use it through some other pdf generation library such as wicked_pdf
[06:29:17] sevenseacat: its a cli tool.
[06:30:32] sevenseacat: what are you trying to do?
[06:33:28] sevenseacat: what are you trying to do?
[06:34:36] sevenseacat: then yes, you need a pdf library like wicked pdf.
[06:35:03] sevenseacat: https://github.com/mileszs/wicked_pdf
[06:35:55] sevenseacat: you should ask your actual questions, not random things
[06:40:15] sevenseacat: yep, wicked_pdf is the wrapper.
[06:43:19] sevenseacat: you should check the wicked_pdf docs
[06:43:43] sevenseacat: or even just the readme
[06:48:29] sevenseacat: again, ask your actual questions.
[07:02:22] sevenseacat: they're exactly the same thing.
[11:42:14] sevenseacat: well phoenix only needed styling for its welcome page, and bootstrap was total overkill for that
[11:43:17] sevenseacat: that's because its part of the default stylesheet
[11:43:26] sevenseacat: which you should remove first thing
[11:44:32] sevenseacat: sure, you can use it as a base, but any real app is going to need a lot more design work than it can give you
[11:44:48] sevenseacat: it might be fine for a starting point
[11:45:19] sevenseacat: all apps need custom css work
[11:46:19] sevenseacat: milligram is not a substitute for having real app design
[11:46:23] sevenseacat: fine for prototyping and the like
[11:51:12] sevenseacat: keep meaning to look into tailwind
[12:13:51] sevenseacat: if they edit different parts of the dom it should be okay, right?

2019-06-25

[02:48:16] sevenseacat: has joined #RubyOnRails
[02:48:17] sevenseacat: has joined #elixir-lang
[02:48:17] sevenseacat: has joined #RubyonRails-offtopic
[02:58:04] sevenseacat: you might need to share your controller code then
[02:59:22] sevenseacat: do you have validations like 'you can only invite one person to a given widget' or something?
[03:03:40] sevenseacat: can you share your controller code?
[03:04:03] sevenseacat: are you cleaning up your database between tests?
[03:16:07] sevenseacat: time to do some debugging then, see what the controller is doing on the second test each time
[03:23:02] sevenseacat: not the specs - the controller itself. use pry or debugger, drop to a console in there, step through the controller (because I assume you've redacted a lot of it) and see what it's doing
[03:33:39] sevenseacat: that's cool, so debug the controller when running the tests, see exactly what happens when the controller is accessed in the second test
[03:33:47] sevenseacat: i don't see any issues, but i assume it's heavily redacted too
[03:48:28] sevenseacat: đź‘Ť it happens :)

2019-06-24

[02:13:59] sevenseacat: has joined #elixir-lang
[02:13:59] sevenseacat: has joined #RubyonRails-offtopic
[02:13:59] sevenseacat: has joined #RubyOnRails
[03:51:38] sevenseacat: I have more issues with browsers forgetting i added security exceptions for self signed certs, than puma
[03:53:30] sevenseacat: every couple of days I have to be all like yes, I know, self signed cert..... across a bunch of diff domains in chrome

2019-06-21

[01:41:45] sevenseacat: has joined #RubyOnRails
[01:41:46] sevenseacat: has joined #elixir-lang
[01:41:46] sevenseacat: has joined #RubyonRails-offtopic
[07:34:58] sevenseacat: can you show your code?
[07:38:30] sevenseacat: ok "end if" isn't a thing
[07:38:52] sevenseacat: secondly I'm not sure what the problem is based on that simplified code
[07:39:02] sevenseacat: what output arent you expecting there
[07:39:56] sevenseacat: that code as is right now is a syntax error

2019-06-19

[01:35:50] sevenseacat: has joined #elixir-lang
[01:35:50] sevenseacat: has joined #RubyonRails-offtopic
[01:35:50] sevenseacat: has joined #RubyOnRails
[02:34:40] sevenseacat: I wouldn't use the pipeline for it, i'd just chuck it in public/
[02:48:28] sevenseacat: i'd love to do that
[06:04:17] sevenseacat: stash it in git and then pop the stash later
[06:04:40] sevenseacat: use an editor macro to select multiple lines and comment them all
[06:08:05] sevenseacat: hate when people check in commented out code
[06:55:09] sevenseacat: you don't access a view directly via a url
[06:55:52] sevenseacat: no, you dont. that's not how rails works.
[06:57:26] sevenseacat: URLs correspond to controller actions. controller actions render views.
[08:20:08] sevenseacat: i recommend postgresql, always
[11:04:43] sevenseacat: <app name>_<environment name>
[11:23:07] sevenseacat: no, environment as in development, test, staging, production, etc.
[11:38:00] sevenseacat: oh you meant table names, not the name of the actual database

2019-06-18

[03:02:13] sevenseacat: has joined #elixir-lang
[03:02:13] sevenseacat: has joined #RubyonRails-offtopic
[03:02:13] sevenseacat: has joined #RubyOnRails
[06:23:21] sevenseacat: then they need to do a better job of locking their own dependencies
[06:23:40] sevenseacat: to only the versions of ecto it's known working with
[08:07:12] sevenseacat: your database isn't running
[08:07:21] sevenseacat: it needs to be running, however you do that in docker land
[08:27:10] sevenseacat: I'm not familiar with docker stuff, but if your local database is running then you need to configure your docker properly to talk to it

2019-06-17

[03:23:45] sevenseacat: has joined #elixir-lang
[03:23:45] sevenseacat: has joined #RubyonRails-offtopic
[03:23:45] sevenseacat: has joined #RubyOnRails

2019-06-14

[02:56:20] sevenseacat: has joined #elixir-lang
[02:56:20] sevenseacat: has joined #RubyonRails-offtopic
[02:56:20] sevenseacat: has joined #RubyOnRails
[02:57:32] sevenseacat: your daily reminder that sprockets is still a pain in the ass
[03:34:39] sevenseacat: https://stackoverflow.com/questions/56591052/creating-a-new-stylesheet-during-a-request-and-then-immediately-requiring-it-giv if anyone knows about sprockets internals
[06:23:47] sevenseacat: so... nil lol
[06:36:10] sevenseacat: only an hour? small peanuts lol
[06:36:18] sevenseacat: ACTION has been looking at the same issue for 3 days
[06:38:13] sevenseacat: okay. open a pull request :)
[06:38:50] sevenseacat: well when you get time then
[06:53:33] sevenseacat: okay and what about it is a problem?
[06:54:57] sevenseacat: can you show us the code?
[06:55:13] sevenseacat: sounds plausible
[06:57:35] sevenseacat: it definitely sounds turbolinks-related
[06:58:25] sevenseacat: I usually remove it first thing from my projects so I'm not sure

2019-06-13

[03:21:46] sevenseacat: has joined #elixir-lang
[03:21:46] sevenseacat: has joined #RubyonRails-offtopic
[03:21:46] sevenseacat: has joined #RubyOnRails
[04:04:15] sevenseacat: sprockets is totally infuriating
[04:23:13] sevenseacat: it just doesn't like me writing a new file and requiring it, in a directive
[06:08:53] sevenseacat: you will always need more than one controller in an app.
[06:09:09] sevenseacat: size isn't a good way to look at it - discrete concepts is
[06:10:09] sevenseacat: what is that model?
[06:13:37] sevenseacat: that's a good rule of thumb
[06:16:09] sevenseacat: if you don't specify only/except, then yes
[06:17:32] sevenseacat: https://guides.rubyonrails.org/action_controller_overview.html#filters
[06:22:50] sevenseacat: i'm not sure about those options, but I'd move your logic for checking account expiry and activity to the query itself
[06:25:16] sevenseacat: I already said I'm not sure
[06:31:31] sevenseacat: I'm not sure what you want me to do with that
[06:33:20] sevenseacat: if you're only dealing with one concept and basic CRUD actions on that one model, then one controller would be fine
[07:12:05] sevenseacat: name them to match the controller actions.
[07:31:33] sevenseacat: it should only be triggered by one URL
[07:34:33] sevenseacat: did you add a route for that action?
[07:40:17] sevenseacat: you've defined it as a post request, so just visiting the URL won't work
[07:40:23] sevenseacat: that makes a get request

2019-06-12

[02:06:46] sevenseacat: has joined #elixir-lang
[02:06:46] sevenseacat: has joined #RubyonRails-offtopic
[03:29:24] sevenseacat: oh nice :D I have some white alps switches here, but I haven't built anything with them yet
[03:33:55] sevenseacat: nice, how much?
[03:34:35] sevenseacat: yeah that's pretty good
[03:43:33] sevenseacat: not TMK, no. i've only used QMK
[03:45:40] sevenseacat: QMK is pretty good to use
[04:16:30] sevenseacat: given up on webpack, fighting with sprockets now
[04:19:31] sevenseacat: want to be all like 'wrap this css in another selector when being included into a specific file'
[09:19:20] sevenseacat: ie. don't use it in production just yet unless you have a death wish
[12:19:32] sevenseacat: has joined #elixir-lang
[12:19:32] sevenseacat: has joined #RubyonRails-offtopic
[12:19:32] sevenseacat: has joined #RubyOnRails

2019-06-11

[07:15:13] sevenseacat: has joined #elixir-lang
[07:15:13] sevenseacat: has joined #RubyonRails-offtopic
[08:15:28] sevenseacat: Ping timeout: 245 seconds
[08:16:27] sevenseacat: has joined #RubyonRails-offtopic
[08:16:28] sevenseacat: has joined #elixir-lang
[08:21:31] sevenseacat: Ping timeout: 258 seconds
[08:26:55] sevenseacat: has joined #RubyonRails-offtopic
[08:26:56] sevenseacat: has joined #elixir-lang

2019-06-07

[00:50:45] sevenseacat: has joined #elixir-lang
[00:50:45] sevenseacat: has joined #RubyonRails-offtopic
[04:55:42] sevenseacat: Quit: My Mac has gone to sleep. ZZZzzz…
[05:00:05] sevenseacat: has joined #elixir-lang
[05:00:05] sevenseacat: has joined #RubyonRails-offtopic
[09:50:43] sevenseacat: all applications are otp applications

2019-06-06

[04:13:41] sevenseacat: has joined #elixir-lang
[04:13:41] sevenseacat: has joined #RubyonRails-offtopic
[06:20:17] sevenseacat: I remember that one
[09:19:53] sevenseacat: because they're not meant to be treated like arrays or lists
[09:21:45] sevenseacat: is it supposed to?
[09:23:02] sevenseacat: and its not what tuples are designed for
[09:25:44] sevenseacat: ruby does a lot of things I wouldn't recommend
[09:26:46] sevenseacat: a little part of me dies every time a rubyist writes &.
[09:27:32] sevenseacat: no - `&.` the safe navigation operator
[09:29:40] sevenseacat: the idea is to think about why you would want the second item of a list
[09:29:46] sevenseacat: or fifth or whatever
[09:35:13] sevenseacat: and you won't like josevalim when he's mad
[09:36:47] sevenseacat: I'm glad you didn't

2019-06-05

[03:08:59] sevenseacat: has joined #RubyonRails-offtopic
[03:09:00] sevenseacat: has joined #elixir-lang

2019-06-04

[02:12:34] sevenseacat: has joined #elixir-lang
[02:12:34] sevenseacat: has joined #RubyonRails-offtopic

2019-05-31

[00:50:05] sevenseacat: has joined #elixir-lang
[00:50:05] sevenseacat: has joined #RubyonRails-offtopic
[00:50:05] sevenseacat: has joined #RubyOnRails
[05:36:00] sevenseacat: has joined #elixir-lang
[05:36:00] sevenseacat: has joined #RubyonRails-offtopic
[05:36:00] sevenseacat: has joined #RubyOnRails
[07:32:49] sevenseacat: some stuff has probably been copied into core, yeah

2019-05-30

[03:50:11] sevenseacat: has joined #elixir-lang
[03:50:11] sevenseacat: has joined #RubyonRails-offtopic
[03:50:11] sevenseacat: has joined #RubyOnRails

2019-05-29

[01:15:15] sevenseacat: has joined #elixir-lang
[01:15:15] sevenseacat: has joined #RubyonRails-offtopic
[01:15:15] sevenseacat: has joined #RubyOnRails

2019-05-28

[06:36:32] sevenseacat: whats the error?
[06:40:50] sevenseacat: I don't know what that test is doing so
[06:42:34] sevenseacat: sounds reasonable
[06:42:54] sevenseacat: why is what working from the browser
[06:48:36] sevenseacat: why is what working from the browser?
[06:50:47] sevenseacat: so you can go to /admin/authorities in a browser. can you go to /admin/authorities in a test?
[06:54:05] sevenseacat: that's... not whaty ou said before
[06:55:06] sevenseacat: AdminRoutes.authority_path(conn, :index) isn't defined by that code
[06:55:55] sevenseacat: so if you put that in a template, it will error
[06:56:51] sevenseacat: ok you didn't say that before either
[06:57:09] sevenseacat: its fun trying to extract the entire issue, piece by frustrating piece
[06:57:44] sevenseacat: thats conn_case, not web.ex