Top "View-helpers" questions

Use this tag for questions on ViewHelpers as used by the Fluid templating engine.

Where to put Ruby helper methods for Rails controllers?

I have some Ruby methods certain (or all) controllers need. I tried putting them in /app/helpers/application_helper.rb. …

ruby-on-rails ruby ruby-on-rails-3 ruby-on-rails-3.2 view-helpers
Using helper methods while templating with Angular JS

Currently in the process of converting a website from its previous templating to Angular. In the previous templating process we …

javascript templates angularjs view-helpers
How to call ApplicationController methods from ApplicationHelper

I want to provide csv links in a view and I placed the csv generating code in ApplicationHelper. However I'm …

ruby-on-rails ruby ruby-on-rails-3 controller view-helpers
How to mock request object for rspec helper tests?

I've a view helper method which generates a url by looking at request.domain and request.port_string. module ApplicationHelper …

ruby-on-rails ruby-on-rails-3 rspec rspec2 view-helpers
Laravel: How to get the current url as a view helper with parameters

I want to build a link in my view that refers to the same page like that one where its …

php laravel view-helpers
How to add a view helper directory (zend framework)

I begin with ZF (1.9.7), and I want to use View Helpers from a library shared between all my projects. But …

php zend-framework view-helpers
How to assign variable in fluid?

I want viewhelper that can be helpful to assign variable in fluid, I dont want variable to be passed from …

typo3 fluid view-helpers
Rails 3 View helper method in Model

I have a class method in my model, and I need to access a method from one of my view …

ruby-on-rails ruby-on-rails-3 view-helpers
Add an 'active' class to all active links in rails?

Basically, I have a lot of code that looks like this: link_to t('.profile'), business_path(@business), class: …

css ruby-on-rails views link-to view-helpers
zf2 Creation of simple service and access it through viewhelper

I am trying to create a simple service in zf2 which I can access using in viewhelper Step1. I have …

php zend-framework2 view-helpers