I don't think this is a good idea. What if a user changes a password because it was compromised? - You would need to change the member ID to log them out which is a really bad idea.
I only have my iPad with me. I opened your learnalist site and while it looks great it seems to be quite glitchy on the iPad. The menu floats about 20% from the top of the screen, it seems to resize every so often, every page seems to freeze and become unresponsive on load or when scrolling. While I see you have an iPad app, it seems to be a recurring theme that more complex sites with loads of bindings (ahem gmail ahem) seem to not work well or at all on tablets and lower performance devices. Something to keep in mind.
Also, can you please give us some examples of client side features learnalist has that would otherwise be messy to implement manually with something like jquery?
Not trying to belittle your website btw, I will be sure to open it from a PC later and I'm sure my experience will be great :)
Since the main check is in the application controller the permission logic feels like a controller to me, why not permissions_controller.rb in the controllers directory? - it just doesn't feel like a model to me. Is it just me?
Something is wrong, I am running the rails g bootstrap:themed but I don't get the nice action buttons in the list view and when I click on an item, the delete action button is not red. Any ideas? :/
Looking at the source, the action buttons are just = link_to "Show", oximetry_path(oximetry), etc in link view. My bootstrap version is 2.0.3.
I was very excited about this, but when I contacted Stripe, they said they will let me know when they will be available in Europe (England in my case) but I'm not holding my breath.
Seems simple_form has quite a few bugs with Mongoid and doesn't work properly at all - the authors simply say "we don't use mongoid, we don't care" :( - Any alternatives that work well with Mongoid?
In the latest version of rspec, I'm getting errors like:
It seems the matcher is not valid anymore?
How would you rewrite it so that it works with the latest rspec?
I don't think this is a good idea. What if a user changes a password because it was compromised? - You would need to change the member ID to log them out which is a really bad idea.
What about controller testing? - I have a bunch of integration tests with capybara which are great, but not sure how to write the controller tests.
I have this test which is taking 5 seconds to run:
How would I speed up a test like that? -- I'm using poltergeist with phantomjs and all js: true tests are painfully slow :(
Anyone have an example of how would you write a spec or test something like this?
This railscasts doesn't cover how to handle config.action_controller.asset_host which is used when emailing for instance.
You want the email to link to the asset in the correct subdomain.
The solution I'm thinking to use looks like this:
Though I'm not quite sure how to write a test for this.
I only have my iPad with me. I opened your learnalist site and while it looks great it seems to be quite glitchy on the iPad. The menu floats about 20% from the top of the screen, it seems to resize every so often, every page seems to freeze and become unresponsive on load or when scrolling. While I see you have an iPad app, it seems to be a recurring theme that more complex sites with loads of bindings (ahem gmail ahem) seem to not work well or at all on tablets and lower performance devices. Something to keep in mind.
Also, can you please give us some examples of client side features learnalist has that would otherwise be messy to implement manually with something like jquery?
Not trying to belittle your website btw, I will be sure to open it from a PC later and I'm sure my experience will be great :)
+1!
How would you use this authorisation logic with Devise?
I tried:
But a guest is never able to login :(
I fixed the problem by adding this:
woo :)
How did you do it?
I have this in my deploy recipe:
When I do cap deploy:setup, it copies the file to:
But when I do cap deploy:cold I see:
And it dies :( - Any ideas?
Since the main check is in the application controller the permission logic feels like a controller to me, why not permissions_controller.rb in the controllers directory? - it just doesn't feel like a model to me. Is it just me?
Does creating a new category belong in the model? - It seems a bit weird to have it in the model rather than the controller, or is it just me?
Yes, it looks like CanCan can be implemented in around 100 lines of code when using Strong Parameters! < https://github.com/colinyoung/cancan_strong_parameters
CanCan seems to have a big flaw by not handling mass assignment: https://github.com/ryanb/cancan/issues/571
There is this very interesting Gem that is basically around 100 lines of code using Strong Parameters: https://github.com/colinyoung/cancan_strong_parameters
Figured it out, seems the haml templates don't look as pretty as the erb ones :(
Something is wrong, I am running the rails g bootstrap:themed but I don't get the nice action buttons in the list view and when I click on an item, the delete action button is not red. Any ideas? :/
Looking at the source, the action buttons are just = link_to "Show", oximetry_path(oximetry), etc in link view. My bootstrap version is 2.0.3.
A revisited episode of this would be fantastic as well as a look at alternatives :)
Would love something like this where mongoid is used :)
Does this work with mongoid?
Useless to anyone outside of the US :(
I was very excited about this, but when I contacted Stripe, they said they will let me know when they will be available in Europe (England in my case) but I'm not holding my breath.
Maybe gem 'turn', :require => false -- it should pretty printe test output
Seems simple_form has quite a few bugs with Mongoid and doesn't work properly at all - the authors simply say "we don't use mongoid, we don't care" :( - Any alternatives that work well with Mongoid?