There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

VonReposti , (edited )

I think you’ll like Ruby. It has mostly done away with braces and code blocks end with end, e.g.


<span style="color:#323232;">def create
</span><span style="color:#323232;">  unless admin redirect_to new_session_path and return
</span><span style="color:#323232;">  
</span><span style="color:#323232;">  @product = Product.new product_params
</span><span style="color:#323232;">
</span><span style="color:#323232;">  if @product.save
</span><span style="color:#323232;">    flash[:success] = "New product has been created!"
</span><span style="color:#323232;">    redirect_to edit_product_path(@product) and return
</span><span style="color:#323232;">  else
</span><span style="color:#323232;">    flash[:error] = "Something went wrong!
</span><span style="color:#323232;">    render :new
</span><span style="color:#323232;">  end
</span><span style="color:#323232;">end
</span>

This is working code that I simplified a bit from an old project of mine.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines