Skip to content

Instantly share code, notes, and snippets.


Andre Joseph ajcubeta

View GitHub Profile
View Library.js
import React, { Component } from 'react';
import TemplateDetails from './TemplateDetails';
import cx from 'classnames';
class Library extends Component {
constructor(props) {
this.state = {
templates: [],
selectedTemplate: null,
ajcubeta / wicked_pdf
Created Jun 11, 2012
Helper methods cause error when binding to ERB template using wicked_pdf
View wicked_pdf
I included this 3 (RedCloth, ApplicationHelper, ActionView::Helpers) in my module class named PdfGenerate.
Followed some snippets from David at
Inside my show.pdf.erb from the view template I have some helper methods like
My question is how does ERB result binding able to recognize these helper methods before generating it to PDF.
Because I always got: NoMethodError: undefined method