.markdown code 的 margin 去掉就 OK 了
Undocumented :location option
You can use undocumented :location option to override where respond_to sends if resource is valid, e.g. to redirect to products index page instead of a specific product’s page, use:
respond_with(@product, :location => products_url)
This is a nice way to add flash if you don’t have a any logic that needs to go around your flash.
def destroy
@current_user_session.destroy
respond_with @current_user_session do |format|
format.html {redirect_to login_path, notice: "You have been logged out"}
end
end
国产的有个 artTemplate 别的也有很多
涨姿势
self.table_name = "xxoo"
submit button 也带 value 的 跟 input 一样的 可以在后端获取的
先判断是否为空
#12 楼 @flowerwrong thx 一样探索中....
sunspot_solr 不是开发环境用的吗?有 production 环境下的配置吗
。。。。。
Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
@blacktulip ...
#29 楼 @blacktulip +1024
建议不要使用 IDE 使用记事本