<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: danieloh</title>
    <description>The latest articles on Forem by danieloh (@danieloh01).</description>
    <link>https://forem.com/danieloh01</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2979655%2F1dcbf3d9-49b2-49fc-a1ec-7acc05697652.png</url>
      <title>Forem: danieloh</title>
      <link>https://forem.com/danieloh01</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/danieloh01"/>
    <language>en</language>
    <item>
      <title>Helper 2</title>
      <dc:creator>danieloh</dc:creator>
      <pubDate>Tue, 01 Apr 2025 03:38:58 +0000</pubDate>
      <link>https://forem.com/danieloh01/helper-2-40o5</link>
      <guid>https://forem.com/danieloh01/helper-2-40o5</guid>
      <description>&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
&amp;lt;label for="title_box"&amp;gt;
      Title
    &amp;lt;/label&amp;gt;

is equivalent to 
    &amp;lt;%= label_tag :title_box, "Title" %&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>ruby</category>
      <category>rails</category>
      <category>html</category>
      <category>programming</category>
    </item>
    <item>
      <title>Helper Methods 1</title>
      <dc:creator>danieloh</dc:creator>
      <pubDate>Mon, 31 Mar 2025 01:48:05 +0000</pubDate>
      <link>https://forem.com/danieloh01/helper-methods-1-3co9</link>
      <guid>https://forem.com/danieloh01/helper-methods-1-3co9</guid>
      <description>&lt;p&gt;Know to only refer to by :details (for url)&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;will work if I upload this to mydomain
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;(in route)
get "/movies/:id" =&amp;gt; "movies#show", as: :details

&amp;lt;%= details_path(42) %&amp;gt;
&amp;lt;%= details_url(42) %&amp;gt; 

&amp;lt;form action="&amp;lt;%= movie_path(@the_movie.id) %&amp;gt;" method="post" data-turbo="false"&amp;gt;
# focus on the movie_path(@the_movie.id) 


#simplify render
render template: "movies/show"
render "movies/new"
# can remove render altogether if the same as title (ie. def new)


#replace a href
&amp;lt;a href="&amp;lt;%= new_movie_path %&amp;gt;"&amp;gt;New movie&amp;lt;/a&amp;gt;  becomes
&amp;lt;%= link_to "Add a new movie", new_movie_path %&amp;gt;



&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>rails</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Worked on App Dev Scaffolding</title>
      <dc:creator>danieloh</dc:creator>
      <pubDate>Fri, 28 Mar 2025 16:14:29 +0000</pubDate>
      <link>https://forem.com/danieloh01/worked-on-app-dev-scaffolding-4lpa</link>
      <guid>https://forem.com/danieloh01/worked-on-app-dev-scaffolding-4lpa</guid>
      <description>&lt;p&gt;Learned Scaffolding&lt;/p&gt;

</description>
      <category>tutorial</category>
      <category>learning</category>
    </item>
  </channel>
</rss>
