书栈网 · BookStack 本次搜索耗时 0.012 秒,为您找到 117 个相关结果.
  • Custom Helpers

    145 2022-11-24 《Hanami v1.3 Guides》
    Example In the overview section, we introduced the design for helpers. They are modules that enrich views’ behaviors. Because they are just Ruby modules, we can create our own ...
  • Overview

    150 2022-11-24 《Hanami v1.3 Guides》
    Hanami::Validations is a mixin that, once included by an object, adds lightweight set of validations to it. It works with input hashes and lets us to define a set of validation...
  • Custom Error Pages

    183 2022-11-24 《Hanami v1.3 Guides》
    When an unsuccessful request is returned, there are some special pages that a Hanami application presents to users. These pages have a generic graphic and some basic information ...
  • Overview

    166 2022-11-24 《Hanami v1.3 Guides》
    A Simple Action Naming Action Module Interface An action is an endpoint that handles incoming HTTP requests for a specific route . In a Hanami application, an action is an ob...
  • Overview

    210 2022-11-24 《Hanami v1.3 Guides》
    Entity Schema Automatic Schema An entity is domain object that is defined by its identity. See “Domain Driven Design” by Eric Evans . An entity is at the core of an applicati...
  • Sessions

    193 2022-11-24 《Hanami v1.3 Guides》
    Enable Sessions Usage Sharing session values between applications Enable Sessions Sessions are available in Hanami applications, but not enabled by default. If we want to tur...
  • v0.8.0

    142 2022-11-24 《Hanami v1.3 Guides》
    Use Ruby 2.2+ Edit your Gemfile , by changing Hanami version: gem 'hanami', '~> 0.8' . Create a group :development in Gemfile and add gem 'shotgun' Create a group :deve...
  • Testing

    214 2022-11-24 《Hanami v2.0 Guides》
    Testing actions Running Tests Providing params and headers Mocking action dependencies Testing requests Hanami actions are designed to be easy to test via a range of techniq...
  • Providers

    183 2022-11-24 《Hanami v2.0 Guides》
    Provider lifecycle Accessing the container via target Providers are a way to register components with your containers, outside of the automatic registration mechanism detailed...
  • Cookies

    162 2022-11-24 《Hanami v1.3 Guides》
    Enable Cookies Settings Usage Example Enable Cookies Hanami applies “batteries included, but not installed” philosophy. Cookies are a feature that is present but needs to be...