Note that there are some explanatory texts on larger screens.

plurals
  1. USMichael van Rooijen
    primarykey
    data
    text
    plurals
    1. COI'm experiencing issues where it makes all the variables in the corresponding .sass.erb file `undefined` when it's imported from another file. Anyone else having this issue?
      singulars
    2. COMass-assignment basically occurs here: `User.new(<here>)` and `user.update_attributes(<here>)` where a user for example submits a form which converts in to a Hash (`params` in your controller). A user can easily modify a form using for example Chrome's web inspector. She could add a checkbox field (`<input type="checkbox" name="admin" value="1"/>`) and submit that. If you have `attr_accessible :admin` in your User model, then you're basically allowing the user to change him or herself to an admin, as `admin` is now an **accessible** field, which is not what you want.
      singulars
    3. CO@VenkatD. sometimes you want to install certain gems but you don't want to load them in to every process. I have a particular rake task that I want to invoke periodically on Heroku through their schedular add-on. This particular rake task requires certain gems that the rest of the application doensn't need. So I `:require => false` these particular gems and explicitly `require "thegem"` from the rake task. This would then save memory in the main app processes and startup time etc. App performance, however, should not be affected even if you require these additional gems in every process.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload