if action.eql? "edit" name_to_update = repo["repo_name"] id = repo["_id"] path = :admin_repositories_update else path = :admin_repositories_create end ?> Name of repo % if action=="edit" % else % end Cancel