Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Matthew McGarvey
    @matthewmcgarvey
    ...there was a sticker?
    :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry:
    Jeremy Woertink
    @jwoertink
    oh no!
    yeah, there was a surprise sticker
    I wanted it to be like "oh, sweet, a shirt... AND A STICKER!!!"
    Håkan Nylén
    @confact
    I am still waiting for the shirt ;)
    And I want to make it official, I am not blaming you @jwoertink for the slow shipment, it is a free shirt after all :D
    Jeremy Woertink
    @jwoertink
    hahah yeah, no worries.
    I shipped some shirts to Canada, and they're still not there...
    I could have walked the shirts across the border faster
    Wout
    @wout
    @jwoertink Yes, thanks for the sticker as well! 😀️ I've put it where it belongs...
    lucky-sticker.jpg
    2 replies
    And yeah, international shipping can be very slow!
    Håkan Nylén
    @confact
    beautiful @wout :)
    Wout
    @wout
    :)
    7sidedmarble
    @7sidedmarble_twitter
    Yo, has anyone messed around with trying to get their browser to auto-refresh on source code recompiles too instead of just js changes?
    I was thinking maybe it could be done by getting the watch script to touch a file after recompile that browsersync could see
    Jeremy Woertink
    @jwoertink
    Doesn't browser sync already do that?
    7sidedmarble
    @7sidedmarble_twitter
    doesn't seem to for me, unless I'm doing it wrong lol.
    Jeremy Woertink
    @jwoertink
    Well, if it doesn't then I feel like it should :sweat_smile:
    I can't really go off what my apps do because my apps are not standard lucky
    let me see what the website does though...
    7sidedmarble
    @7sidedmarble_twitter
    yeah maybe its a me thing but I dont think it does that
    Jeremy Woertink
    @jwoertink
    nevermind... I can't boot the website lol
    Wout
    @wout
    @7sidedmarble_twitter Mine do refresh after compilation.
    7sidedmarble
    @7sidedmarble_twitter
    weird, I wonder what's different for me
    Wout
    @wout
    But sometimes the browsersync connection fails for some reason, which can be fixed with a manual reload.
    Yeah, that's odd. I've got four Lucky apps now and they all do it.
    Jeremy Woertink
    @jwoertink
    that's where we call it. After you update a crystal file, it will call that to relaunch browser sync if it's not running, or it will just tell it to reload
    Check that browsersync is running on the correct port. Also, is your lucky app running on a standard port? Maybe it's a bug related to that?
    7sidedmarble
    @7sidedmarble_twitter
    let me check that out
    Jeremy Woertink
    @jwoertink
    If you happen to find an issue, please report so we can keep track of it
    7sidedmarble
    @7sidedmarble_twitter
    I'm also doing some crazy stuff with docker so that could explain it too.
    Håkan Nylén
    @confact
    My browsersync haven't worked either. But I just refresh manually. Tired to fix small things in my dev env :D
    btw @jwoertink - how you feel about luckyframework/avram#392 ? - Is it unnecessary or a good idea?
    Jeremy Woertink
    @jwoertink
    taking a look
    7sidedmarble
    @7sidedmarble_twitter
    Yeah I wasn't using a docker setup before and it was not working there
    it worked for JS and CSS but nothing else
    But right now I'm still testing to make sure it's not just my setup
    Ghost
    @ghost~56ba344de610378809c0a277
    FYI, I had to add reloadDelay: 500 to my bs-config.js to make everything reload automatically
    otherwise i needed to refresh manually
    7sidedmarble
    @7sidedmarble_twitter
    ahh, think it was timing out?
    Ghost
    @ghost~56ba344de610378809c0a277
    something like that, i took a look at the watch file but couldn’t fix my issue, reloadDelay did the trick
    Ghost
    @ghost~5ebdf6e0d73408ce4fe3cef5
    How can I tell whether my Avram::SaveOperation is a create or an update?
    Paul Smith
    @paulcsmith
    You can check for record using: @record.nil?
    If it’s nil it is a create. I think there are methods that do that so you don’t need to use the instance variable but I don’t remember them off the top of my head
    Igor Alexandrov
    @igor-alexandrov
    I added enctype: "multipart/form-data" to form_for to be able to upload a file and now I am getting
    web          | POST /images
    web          |  ▸ Handled by Images::Create
    web          |  ▸  Lucky::MissingNestedParamError
    web          |
    web          |      Missing param key: 'image'
    web          |
    web          |     Backtrace
    web          |
    web          |      lib/lucky/src/lucky/params.cr:168:7 in 'nested'
    web          |      src/models/image.cr:12:3 in 'permitted_params'
    And another question is there a way to add parameters logging in development in each request?
    Håkan Nylén
    @confact
    @igor-alexandrov i think you can use before or after hooks in a parent action for logs