RubyMine7.0.1在每个控制器类中显示此警报.
下面的控制器类文件.谢谢.
class ApplicationController < ActionController::Base
protect_from_forgery with: :exception
helper_method :current_user, :logged_in?
before_action :authenticate
private
def current_user
return unless sessions[:user_id]
@current_user ||= User.find(session[:user_id])
end
def logged_in?
!!session[:user_id]
end
def authenticate
return if logged_in?
redirect_to root_path, alert: '??????????'
end
end
Run Code Online (Sandbox Code Playgroud) 我想用iOS相机以1:1的宽高比捕捉视频.
我尝试使用UIImagePickerController,但它没有提供更改的宽高比.有人能给我点子吗?
此外,iPhone应用程序"Viddy"提供1:1宽高比视频拍摄 http://gyazo.com/1ccba9990bb589961f1d5df23b71b84b.png?1364791668
谢谢!
我想创建像facebook lookback这样的系统,但我不知道.
https://facebook.com/lookback/
它通过一些具有一些效果的图片生成视频.
你有什么想法可以创造类似的东西吗?
在服务器端创建swf(Flash)和捕获屏幕?
或者是否有类似有用的图书馆制作带效果的电影?
任何建议表示赞赏.
谢谢.