|
1d
|
|
comment |
Can Rails Migrations be used to convert data? Sometimes you will need to this as well User.connection.schema_cache.clear! |
|
1d
|
|
comment |
Model.reset_column_information does not reload columns in rails migration Thank you so much! This was driving me badshit since the Rails docs clearly write something different -> guides.rubyonrails.org/… |
|
May
9 |
|
asked | How to test an email confirmation loop |
|
May
4 |
|
awarded | Necromancer |
|
Apr
25 |
|
answered | beginner to use assimp in ios |
|
Apr
24 |
|
comment |
Ruby: Automatically set instance variable as method argument? Thanks for this answer. It definitely seems like more work that it's worth though. :) |
|
Apr
22 |
|
comment |
Rails and OS X: How to install rmagick? I just want to say, that for me too, the folder is different. For me, the cd command is: cd /Users/jackquack/.homebrew/Cellar |
|
Apr
17 |
|
awarded | Necromancer |
|
Apr
10 |
|
comment |
Upgrading to Rails 3.2.2: How to solve the 'undefined method for Syck::DomainType' error related to the Delayed Job gem? Why does this work? Can you please explain? |
|
Apr
9 |
|
awarded | Yearling |
|
Mar
28 |
|
awarded | Necromancer |
|
Feb
26 |
|
awarded | Nice Answer |
|
Feb
22 |
|
comment |
Non-Monotonic SQL ID Values Slug eh? I've never heard the term, but I think it describes what I was looking for. I just needed that term. Thanks a lot! Now I can wade through what's out there. |
|
Feb
21 |
|
asked | Non-Monotonic SQL ID Values |
|
Feb
3 |
|
answered | How do I make an inherited_resource optionally nested as a singleton? |
|
Feb
3 |
|
comment |
Declarative Authorization (permissions) for Backbone Views How might I dump the permissions to cache/store them? I see this is a feature of cantango, but I'm not using that... |
|
Feb
2 |
|
comment |
Declarative Authorization (permissions) for Backbone Views Yes, AJAX requests are another option, but then there is a speed tradeoff. Also, often the client has enough information to answer the permissions question already, but no organized way of asking the question. Of course, all authorization is strongly enforced server-side, but it's best to have a UI that can do this itself. Like soft-validations: github.com/n-time/backbone.validations client-side, and strong-validations server-side play nicely together. |
|
Feb
1 |
|
comment |
Declarative Authorization (permissions) for Backbone Views Thanks for your answer. It's true that I can do that, but the problem is when those permissions are much more complex than just Admin vs non-Admin. Also, sometimes permissions depends on a complex relationship, for instance you can edit a comment on a project if you are a member of that project with admin privileges. |
|
Jan
31 |
|
asked | Declarative Authorization (permissions) for Backbone Views |
|
Jan
31 |
|
comment |
Ruby on Rails (3) hiding parts of the view I wish there was a better way to do this. What if there are 8 different possibilities? Like, if_admin, if_moderator, if_banned, if_warned, if_logged_in, etc. etc. |