Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class WelcomeController < ApplicationController
- def index
- @message = "Первый в мире удобный менеджер флеш-карточек. Именно так."
- @card = Card.random_card
- end
- def rand
- end
- =begin def check
- @translated_text = params[:original_text]
- if @card.chech_translation
- redirect_to :back,
- flash[:notice] = "Правильно!"
- else
- redirect_to :back,
- flash[:notice] = "Ошибка!"
- end
- end
- =end
- private
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement