小编jus*_*ode的帖子

如何使<img>标签在div中水平排列?

我需要让图像在div中水平并排显示.我怎样才能做到这一点?

HTML:

<div class="Wrapper">
  <img src="/wp-content/uploads/2012/07/TFT.png" alt="Smiley face" height="90" width="95" />
  <img src="/wp-content/uploads/2012/07/Ltyt.png" alt="Smiley face" height="90" width="95" />
  <img src="/wp-content/uploads/2012/07/artspng" alt="Smiley face" height="90" width="95" />
</div>
Run Code Online (Sandbox Code Playgroud)

参考:jsFiddle

html css image

7
推荐指数
1
解决办法
5万
查看次数

没有将Symbol隐式转换为Integer

我使用rails 4.0.1和ruby 2.0.0 with devise 3.2.2.当用户尝试编辑他的帐户时,我不断收到此问题.我在application_controller.rb中有我的强参数和一个自定义更新控制器,如下所示:

class RegistrationsController <Devise :: RegistrationsController

def update
    # For Rails 4
    account_update_params = devise_parameter_sanitizer.for(:account_update)
    @user = User.find(current_user.id)
    @user.balanced_associate_token_with_customer(account_update_params)
    if @user.update_with_password(account_update_params)
      set_flash_message :notice, :updated
      # Sign in the user bypassing validation in case his password changed
      sign_in @user, :bypass => true
      redirect_to after_update_path_for(@user)
    else
      render "edit"
    end
end 
Run Code Online (Sandbox Code Playgroud)

protected def after_update_path_for(resource)user_path(resource)end end

从昨天开始我一直在拉我的头发......任何帮助都会受到赞赏.如果您需要更多信息,请告诉我.

编辑:在我注意到错误之前唯一改变的是设计开始在设计初始化文件中请求config.secret_key.

完整跟踪的一部分显示:

devise (3.2.2) lib/devise/models/database_authenticatable.rb:64:in `[]'
devise (3.2.2) lib/devise/models/database_authenticatable.rb:64:in `update_with_password'
app/controllers/registrations_controller.rb:12:in `update'
actionpack (4.0.2) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
actionpack (4.0.2) lib/abstract_controller/base.rb:189:in `process_action'
Run Code Online (Sandbox Code Playgroud)

谢谢!

implicit-conversion devise ruby-on-rails-4

3
推荐指数
1
解决办法
859
查看次数

标签 统计

css ×1

devise ×1

html ×1

image ×1

implicit-conversion ×1

ruby-on-rails-4 ×1