Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Andre Meij
    @ahmeij
    Also, stimulus also works with Turbolinks, (which loads dynamic content) so maybe its possible to make them compatible
    But the use case is much more limited if Fie is used correctly I guess
    Eran Peer
    @raen79
    Yes I don't think stimulus does much if fie is used correctly. I haven't tried them together because to be honest I don't know how to use them together. Turbolinks should work fine however.
    I think a blacklist would be perfect by the way! Tell me if you are making a PR :).
    Andre Meij
    @ahmeij
    I'll make a pull request. I have a few instance variables that are Procs (which cant be marshalled) so I kind of need to anyway :)
    Eran Peer
    @raen79
    Awesome :D
    Eran Peer
    @raen79
    Do you mind tell me what you are working on? I am always curious what people do with fie.
    Andre Meij
    @ahmeij
    We have a logistical app with a backend which has many complicated settings. We'd like to improve interactivity on these pages and I'm testing to see if Fie can make that happen easier then stimulus
    We do a lot of Ruby, and only javascript when we really need to :) so it seems it would fit well
    Eran Peer
    @raen79
    Nice, what company do you work at?
    Andre Meij
    @ahmeij
    Boxture.com
    Andre Meij
    @ahmeij
    Have you ever tried this with namespaced controllers? I have some difficulty getting the commander subscription to work with controllers namespaced under 'admin'
    Andre Meij
    @ahmeij
    Another pull request coming soon :) namespaced controller support
    Eran Peer
    @raen79
    I haven't no good shout! If you have feature requests you don't have time for you can always tell me!
    Priit Tark
    @priit_twitter
    Hi, nice idea, we will start using it. Live typing is probably too fancy feature for our users, it requires usability changes, plus undo feature development. Therefore we will use fie with existing forms with classic submit.
    Eran Peer
    @raen79
    Awesome! Keep in mind that namespaced controllers currently do not work as was recently mentioned but you can access the feature from the latest version on git.
    I will release 0.3.4 in the week end
    Priit Tark
    @priit_twitter
    Thanks for tip!
    Eran Peer
    @raen79
    And version 0.3.4 is out, with the help of Boxture, namespaced controllers are now supported. The next step is partial re-rendering of pages for a huge huge performance boost.
    Marcel Joist
    @MJoist_twitter
    Thanks for your great work
    Priit Tark
    @priit_twitter
    As long we understand, currently fie commander re-renders all body and diffs html changes in client browser. Fie demo worked well but in real application with huge one is no go to re-render all page again. Thus we would be very happy, if we can render only partial, because currently pain old ajax with partial is faster in our case.
    Eran Peer
    @raen79
    Yes the next version of fie will do that
    ETA 1 month
    Priit Tark
    @priit_twitter
    Super, thank you. We played a bit here about partial rendering. We follow restful design, therefore ideally would be super handy if fie would render restful ajax controllers. Say we define def index; respond_to do |fie| in our resful controller and in fie view file fie-resource: orders_url and it will render. Or alternative, works similar way as rails partials, where helper would be render: 'orders/index', fie: true and it will render fie commander.
    We will play with your code a bit and try to find elegant design for partial rendering.
    Eran Peer
    @raen79
    I was thinking originally of having a using a fie partial method to render partials
    Priit Tark
    @priit_twitter
    You are right, render partial would probably solve it and way easier to implement. It would be cool, if fie would use rails original render partial syntax + fie: true, thus we can easily map controllers similarly as restful controllers do at Rails currently.
    Eran Peer
    @raen79
    This is what I was thinking. I'll start working on this in the weekend
    Paul Smith
    @paulcsmith
    I just found this project and I think it is incredibly interesting. The guides are very well done as well. I’m curious how you handle activerecord objects and forms. How does Fie serialize and deserialize objects that are that complex? Or does it not even try and somehow reloads the objects and forms when re rendering?
    I work on a framework called Lucky and I’d love to have something like this in crystal that is optional or built in. But I’m ha omg trouble figuring out how to handle complex objects like forms, models and queries.
    Eran Peer
    @raen79
    Hey thanks :) At the moment I am simply encrypting/decrypting and using basic ruby marshalling which so far has worked well for active records. I therefore had no need to find a more complicated logic. The only barrier I had was not being able to marshal objects with singleton, but it is not the end of the world really, you can in most cases just send objects that do not have singleton to the view.
    Paul Smith
    @paulcsmith
    Oh that's very interesting. Thanks for sharing the solution!
    nexar
    @nexar
    Hi Eran, firstly like everyone else : 'Very Interesting' and congrats on a good job.
    I do have one question : The execute commander method only asks for method name and not WHICH commander. How does it know which commander's method to call?
    nexar
    @nexar
    Oops scratch that. It knows via the controller that called that particular view, of course. Silly me.
    Eran Peer
    @raen79
    :smile:
    Eran Peer
    @raen79
    Hey guys, we are now at version 0.3.5, fixed a few security vulnerabilities and added a change fie HTML DOM binding
    hopefully performance improvements will come within the next month :)
    Chris O'Donnell
    @ChrisCPO
    Hi there, I think the Gem is pretty cool. I'm having trouble Understanding pools though.
    I you have a pool all users who visit that page are in that pool, right?
    how do you limit what users receive that message?
    Eran Peer
    @raen79
    There are multiple ways right now. Do you have a specific scenario?
    Chris O'Donnell
    @ChrisCPO

    Well I would like all users on /foos/:id to be able to view the resource change depending on another's actions where only one user is active at a time, but their view would also be active.

    In another way One active users form submission would be processed and broadcast to all users on that resource including the submitting user.

    Eran Peer
    @raen79
    So in a pool the submission would automatically be permeated to any other user on that resource. Is this not what you want?
    Chris O'Donnell
    @ChrisCPO
    yes, after submission the data would be processed and mutated, then sent out to the pool.
    Chris O'Donnell
    @ChrisCPO
    humm I think I'm actually getting an error. I will post an issue.
    Chris O'Donnell
    @ChrisCPO

    @raen79 so there is an issue with encoding a Marshal dump to json with an active record model. I have been trying to figure this out but I'm not the best with string encoding. Maybe someone else here has some thoughts.

    issue: raen79/fie#27

    Eran Peer
    @raen79
    Hey I'll have a look today!
    Eran Peer
    @raen79
    I just had another look. I wrote an answer on the github issues, let's try to move the conversation over there!
    Eran Peer
    @raen79
    @ChrisCPO Hey Chris! I think I just solved your issue. The fix is in version 0.3.6. Let me know if it works. Also, could you tell me what you are using fie for?
    mudassir-ijaz
    @mudassir-ijaz
    Hey
    I wanna dive into rails, i have just covered devise in rails, what should i do next