Skip to content

Instantly share code, notes, and snippets.

E.FU e-fu

Block or report user

Report or block e-fu

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@e-fu
e-fu / app_controller_test.exs
Last active Nov 11, 2015
Namespaced and some actions as nested resources
View app_controller_test.exs
defmodule Rolester.Admin.AppControllerTest do
use Rolester.ConnCase
alias Rolester.App
alias Rolester.Tenant
@valid_attrs %{name: "some content"}
@invalid_attrs %{}
setup do
@e-fu
e-fu / _form.html.haml
Created Dec 3, 2012
path in DB with Rails
View _form.html.haml
= simple_form_for(@page) do |f|
= f.error_notification
.form-inputs
= f.input :name
= f.input :url
= f.input :permalink
= f.collection_select :parent_id, Page.order(:name), :id, :permalink, include_blank: true
.form-actions
You can’t perform that action at this time.