 the resources method in
  config/routes.rb. In this case Rails will simply infer the appropriate
  URL from the record itself. For example,
<%= form_for @post do |f| %>  ... <% end %> is then equivalent to

something like:
<%= form_for @post, as: :post, url: post_path(@post), method: :patch,
html: { class: "edit_post", id: "edit_post_45" } do |f| %>  ... <%
end %>

As you're using @premails instance var (which is an instance of the Premail class), your form_for helper will be trying to use a premails path. To use a pages path (as per your question), you'll need to manually set the url option

 Q:

How to remove Tikz pgfplot ticks from the top, bottom and right borders?

I am creating a histogram, which I've managed to do with the following code:
\begin{tikzpicture}
\centering
\begin{axis}[
    ymin=0, ymax=50,
    minor y tick num = 2,
    axis background/.style={fill=gray!5},
    area style,
    xticklabel=\pgfkeys{/pgf/number format/.cd,fixed,precision=1,zerofill}\pgfmathprintnumber{\tick}x,
    yticklabel=\pgfkeys{/pgf/number format/.cd,fixed,precision=0,zerofill}\pgfmathprintnumber{\tick}\%,
    xlabel={EV/EBIT},
    ylabel={Frequency}],
    ]
\addplot+ [ybar interval,mark=no, fill={rgb:red,0;green,47;blue,135},draw=gray!5] plot coordinates { (0, 0) (5, 7.6) (10, 40.1) (15, 30.5) (20, 10.7) (25, 4.1) (30, 2.4) (35, 1.4) (40, 1.0) (45, 0.7) (50, 0.4)};
\end{axis}
\end{tikzpicture}

which gives:

But what anno
the resources method in 
   config / routes.rb. In this case Rails will plainly deduce the appropriate 
   URL from the record itself. For example, 
 <% = form_for @post do |f|% >  ... <% conclusion% > is then equivalent to 

 something like: 
 <% = form_for @post, as: : post, url: post_path(@post), method: : temporary hookup, 
 hypertext markup language: { class: " edit_post ", i d: " edit_post_45 " } do |f|% >  ... <% 
 end% > 

 As you're using @premails example var (which is an instance of the Premail course), your form_for helper will be trying to use a premails path. To use a pages path (as per your doubt), you'll need to manually set the url option 

  Q: 

 How to murder Tikz pgfplot ticks from the top, bottom and right boundary line? 

 I am creating a histogram, which I've managed to do with the following code: 
 \begin{tikzpicture } 
 \centering 
 \begin{axis } [ 
     ymin=0, ymax=50, 
     minor y tick num = 2, 
     bloc background/.style={fill = gray!5 }, 
     area style, 
     xticklabel=\pgfkeys{/pgf / number format/.cd, fixed, precision=1,zerofill}\pgfmathprintnumber{\tick}x, 
     yticklabel=\pgfkeys{/pgf / number format/.cd, fixed, precision=0,zerofill}\pgfmathprintnumber{\tick}\%, 
     xlabel={EV / EBIT }, 
     ylabel={Frequency } ], 
     ] 
 \addplot+ [ ybar time interval, marker = no, fill={rgb: red,0;green,47;blue,135},draw = gray!5 ] plot coordinates { (0, 0) (5, 7.6) (10, 40.1) (15, 30.5) (20, 10.7) (25, 4.1) (30, 2.4) (35, 1.4) (40, 1.0) (45, 0.7) (50, 0.4) }; 
 \end{axis } 
 \end{tikzpicture } 

 which gives: 

 But what anno
 thf resources method in
  cunfig/routes.rb. Iu this rase Rajls will simply infer the appropriatx
  UEL frim the record itself. Fur examplv,
<%= form_for @posu do |f| %>  ... <% end %> is then equivalskt to

vimething like:
<%= norm_for @posd, as: :post, url: [ort_'ath(@post), method: :patch,
html: { class: "edie_post", ic: "fdit_post_45" } do |f| %>  ... <%
tnd %>

As gou're using @premails instance var (shich iv an instance of the Premail class), your forl_for helper will bf trying to use q premails pxth. To use a pages patg (as per your question), you'll nedd to manually wer tjg url option

 Q:

How to remove Tllz pgf[lot tivks from the tpp, uottim and right borders?

I am creating a hisjogram, whiwh I've managed to di qith jhe fmllodung cose:
\uegjn{tikzoicvure}
\centerihg
\begin{axis}[
    ymin=0, ymax=50,
    mimow y tick num = 2,
    axys background/.style={fill=gray!5},
    area style,
    sticklabel=\pgfkeys{/pgf/numver format/.cd,fixed,preclsion=1,zerosill}\pgfmathprintnumber{\tick}x,
    yticklabel=\pgfkeys{/pcf/numuef firixr/.cf,fixed,precision=0,zerofill}\pgfmathprintnumber{\tick}\%,
    xkabel={EV/EBIT},
    ylabel={Freqiejcu}],
    ]
\addplot+ [ycar incsrbal,mark=no, fill={rgb:rfd,0;green,47;flue,135},deaw=gray!5] pjot voordinates { (0, 0) (5, 7.6) (10, 40.1) (15, 30.5) (20, 10.7) (25, 4.1) (30, 2.4) (35, 1.4) (40, 1.0) (45, 0.7) (50, 0.4)};
\end{axps}
\ene{tikzpicture}

which yives:

But whac anno
the resources method in config/routes.rb. In this will infer the URL from the form_for do |f| %> <% end %> then equivalent to something like: <%= @post, as: :post, url: post_path(@post), method: :patch, html: { class: "edit_post", id: "edit_post_45" do |f| %> ... <% end %> As you're using @premails instance var is instance the class), your form_for helper will be trying to use a premails path. To use a pages (as per your question), you'll need to manually the url option Q: to remove Tikz pgfplot ticks the bottom and borders? am a histogram, which managed to do with the following code: \begin{tikzpicture} \centering \begin{axis}[ ymin=0, ymax=50, minor y tick num = axis background/.style={fill=gray!5}, xticklabel=\pgfkeys{/pgf/number format/.cd,fixed,precision=1,zerofill}\pgfmathprintnumber{\tick}x, format/.cd,fixed,precision=0,zerofill}\pgfmathprintnumber{\tick}\%, ylabel={Frequency}], \addplot+ [ybar interval,mark=no, coordinates { (0, 0) (5, 7.6) 30.5) (20, 10.7) (25, 4.1) (30, 2.4) (35, (40, 1.0) 0.7) (50, 0.4)}; \end{axis} \end{tikzpicture} which But what anno
 the resources method in
  confiG/routes.rb. IN this CasE RaIlS wilL simPly infer the appROpriAte
  URL from the record itsElf. FoR eXAmplE,
<%= FoRm_for @Post do |f| %>  ... <% ENd %> IS TheN eQuIvaLeNT tO

someThiNg like:
<%= fOrm_for @post, As: :pOsT, url: post_path(@POsT), method: :patCh,
hTml: { class: "edit_PosT", id: "ediT_pOst_45" } DO |f| %>  ... <%
end %>

as yOu're uSing @prEMails iNstance vaR (wHIch is aN InstancE OF tHe PrEmail class), your forM_FoR Helper will be trYing to UsE A pREMaiLs pAth. To use a pAgEs patH (As per yoUR qUESTioN), You'll need to maNually set thE Url Option

 q:

HOw tO Remove tikz pGfPLot Ticks from thE top, Bottom and Right bORders?

I aM CreatinG a histOgrAm, wHich i'Ve MaNagEd TO do WItH thE FolLowing coDe:
\BeGin{tiKzpiCTURE}
\cenTerIng
\bEgin{aXis}[
    ymin=0, ymax=50,
    miNor Y ticK Num = 2,
    Axis bAckgrOund/.StYle={fiLl=gray!5},
    Area sTyLe,
    xticklabel=\pgfKeys{/Pgf/number ForMaT/.cd,FiXed,prECision=1,ZerOfiLl}\pgfmaThprintNUmbEr{\TICK}x,
    Yticklabel=\pgfkeys{/pGf/NUMbEr format/.Cd,fixeD,PrEcISion=0,zeroFiLl}\pGfmaTHPrintNumbER{\tIck}\%,
    xlabeL={EV/EBIt},
    YlAbEl={FrequEnCy}],
    ]
\addpLoT+ [ybAr iNtervAL,marK=no, filL={rgb:red,0;gReen,47;bLUe,135},draw=gray!5] plot COordinates { (0, 0) (5, 7.6) (10, 40.1) (15, 30.5) (20, 10.7) (25, 4.1) (30, 2.4) (35, 1.4) (40, 1.0) (45, 0.7) (50, 0.4)};
\end{AXiS}
\ENd{TIkzpIctUre}

which givEs:

BuT What Anno
 the resources method in
 config/ro utes. rb.  In  t hiscase  Rails will si m plyinfer the appropriate  URL  f r om t h erecor d itsel f .F o r e xa mp le, 
< % =form_ for  @postdo |f| %> .. .<% end %> is th en equival ent  to

somethi nglike:<% = f o rm_fo r @ post,  as: : p ost, u rl: post_ pa t h(@pos t ), meth o d ::pat ch,
html: { class :  " e dit_post", id:  "edit _p o st _ 4 5"} d o |f| %> .. . <%e nd %>
A sy o u 're using @premai ls instance var  (whic hisa n inst anceof the  Premail cl ass) , your fo rm_for helperw ill betrying  to  us e ap re ma ils  p a th. To  us e  apages pa th  ( as pe r yo u r q uest ion ), y ou'll  need to manu all y se t  th e url  opti on
 Q :

Ho w to r emove  T ikz pgfplot tic ks f rom the t op,  b ott om  andr ight b ord ers ?

I am  creati n g a  h i s t og ram, which I've ma na g e dto do wi th the fo ll o wing cod e: 
\b egin { t ikzpi ctur e }\centeri ng
\be g in {a xis}[
  ymin= 0,  ym ax= 50,
  mi nor ytick num  = 2,     axis backg r ound/.style={ f il l = gr a y!5} ,
   area sty le,   x tick l ab el= \ pgfke ys{/p gf / nu m ber format/.cd,fixe d, precis ion=1 ,zerofill}\pg fmathprint n u m ber{\tic k}x,   yticklabel=\p gfkey s{/pgf/num b er forma t/.cd ,fixed,p recision= 0 , zerofill }\p gfm ath pri n t nu mber{\tick}\% ,    xl abel={E V/E BIT},
  yla bel ={F re quency}], 
    ]
\ ad dp lo t+  [y bar i n terval,m ar k=n o,  fi ll={r g b:red, 0;gre en,4 7; bl u e,1 35},dra w =g r a y!5]  p lo t co ord in ates{ (0 ,  0)  (5, 7. 6) (10, 4 0.1 )  (15 ,30 .5) (20 , 10.7) (25,4. 1) (30, 2. 4)  (3 5, 1.4 ) (40, 1.0 ) (45, 0.7) (50, 0.4)}; \end{ax is} 
\end {tik zpicture} 

w hich g ive s :

But  whatanno
 the_resources method_in
  config/routes.rb. In_this case_Rails_will simply_infer_the appropriate
 _URL from the_record itself. For example,
<%=_form_for @post do_|f|_%>  ... <% end %> is then equivalent to

something like:
<%= form_for @post, as:_:post,_url: post_path(@post),_method:_:patch,
html:_{ class: "edit_post", id: "edit_post_45"_} do |f| %> _... <%
end_%>

As you're using @premails instance var (which is_an_instance of the_Premail class), your form_for helper will be trying to_use a premails path. To use_a pages path_(as_per_your question), you'll need_to manually set the url option

_Q:

How to remove Tikz pgfplot ticks_from the top, bottom and right borders?

I_am creating a histogram, which I've_managed to do with the_following code:
\begin{tikzpicture}
\centering
\begin{axis}[
_   ymin=0, ymax=50,
_  _minor y_tick num =_2,
    axis background/.style={fill=gray!5},
_  _area style,
    xticklabel=\pgfkeys{/pgf/number_format/.cd,fixed,precision=1,zerofill}\pgfmathprintnumber{\tick}x,
_  _yticklabel=\pgfkeys{/pgf/number_format/.cd,fixed,precision=0,zerofill}\pgfmathprintnumber{\tick}\%,
_ _ xlabel={EV/EBIT},
 __ ylabel={Frequency}],
__  ]
\addplot+ [ybar interval,mark=no, fill={rgb:red,0;green,47;blue,135},draw=gray!5]_plot_coordinates { (0, 0) (5, 7.6) (10,_40.1) (15, 30.5) (20,_10.7)_(25, 4.1) (30, 2.4)_(35, 1.4) (40, 1.0) (45,_0.7) (50, 0.4)};
\end{axis}
\end{tikzpicture}

which gives:

But what anno