This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%form{:id=>'form', :method=>"post"} | |
= form_for @user do |f| | |
=text_field_tag "name", params[:name], :placeholder => "Nome" | |
%br | |
=text_field_tag "email", params[:email], :placeholder => "E-mail" | |
%br | |
=text_field_tag "username", params[:username], :placeholder => "Nome de usuário" | |
%br | |
=password_field_tag "password", params[:password], :placeholder => "Senha" | |
%br |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
= form_for @user2 do |f| | |
- if @user2.errors.any? | |
#error_explanation | |
%h2= "#{pluralize(@user2.errors.count, "error")} prohibited this user2 from being saved:" | |
%ul | |
- @user2.errors.full_messages.each do |msg| | |
%li= msg | |
.field | |
= f.label :nome |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head></head> | |
<title>Responde Aí</title> | |
<link href="/assets/application.css?body=1" media="all" rel="stylesheet" type="text/css" /> | |
<script src="/assets/application.js?body=1" type="text/javascript"></script> | |
<meta content="authenticity_token" name="csrf-param" /> | |
<meta content="NM2lGRh/Fm0pP+5l4b6HAdw2IFWBhbPGtrvQyR3bgLM=" name="csrf-token" /> | |
<script src="/assets/user/cadaster.js?body=1" type="text/javascript"></script> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=form_tag('/user/cadaster', :multipart => true) do | |
=text_field_tag "name", params[:name], :placeholder => "Nome" | |
%br | |
=text_field_tag "email", params[:email], :placeholder => "E-mail" | |
%br | |
=text_field_tag "username", params[:username], :placeholder => "Nome de usuário" | |
%br | |
=password_field_tag "password", params[:password], :placeholder => "Senha" | |
%br | |
=password_field_tag "password_confirm", params[:password_confirm], :placeholder => "Confirme sua senha" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# MODEL | |
class Step < ActiveRecord::Base | |
belongs_to :book | |
belongs_to :charpter | |
belongs_to :exercice | |
attr_accessible :image, :body, :number, :book, :charpter, :exercice | |
has_attached_file :image | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"error": { | |
"message": "Invalid redirect_uri: A URL informada não é permitida pela configuração do aplicativo.", | |
"type": "OAuthException", | |
"code": 191 | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#block-books | |
#sectionDisciplines0.sectionDisciplines | |
- @books.each do |b| | |
.book-item | |
- if b.matter_id == @ids[0] | |
%a{:href => ""} | |
= image_tag b.avatar.url | |
%a.title-item-book{:href => ""} | |
%p | |
= b.name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(".like").click(function() { | |
var exercice = $("#exercice-select").val(); | |
var evaluationPro = $('#vote-answer .like p'); | |
var evaluationCon = $('#vote-answer .dislike p'); | |
$.get("/user/home?like='" + exercice + "'", function(json){ | |
alert(json); | |
evaluationPro.html(json[0]); | |
evaluationCon.html(json[1]); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdarg.h> | |
void print(int i){ | |
printf("%d ", i); | |
} | |
void println(int i){ | |
printf("%d\n", i); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.field | |
%select{:name => 'category', :multiple => true} | |
%option{:value => "0"} | |
= "Categoria" | |
- @categories.each do |c| | |
%option{:value => "#{c.id}"} | |
= c.name |
OlderNewer