I'm getting this error ("wrong number of arguments (given 1, expected 0)") in the following helper. ...
I'm getting this error ("wrong number of arguments (given 1, expected 0)") in the following helper. ...
In my form I have a collection_select to be able to select the name of the articles, my problem is that when I select any article nothing happens O ...
Lets say i have this partial i am trying to render when i use this partial in a view like this i am getting the HTML output as this works as ...
I am facing trouble with this div element during loading the image. 404(Not Found) Here is my code in Views. I am not familiar with this data-image ...
I have rails application, with sass less and many gems. I try to find where image_tag is overwrited to debug why it do not add fingerprint hash to ur ...
I am converting some older code which uses content_tag like this: which generates the expected <p class="etc"> Some content </div> I ...
I am able to get & save form data for Task using form_for in the user form. I want to accept attributes for Task as well as TaskItem in the U ...
Since upgrading Rails from 5.1 to 5.2, form_with is not defaulting to remote: true, although it was in rails 5.1 How to default to remote true? ...
I am setting up my navbar link_to's and I'm trying to stop a link being rendered if current_path is the same as link_path or if current path is the sa ...
Following is my code. But the above code is throwing following error when I try to run. Any Suggestions. UPDATE Is that true if we use params a ...
I have an EmailHelper class defined in /lib/email_helper.rb. the class can be used directly by a controller or a background job. It looks something li ...
The docs state options_from_collection_for_select(collection, value_method, text_method, selected = nil) has to have elements that respond_to? the val ...
I have MyModel with two attributes, a :label string and an :group integer which groups these strings. The labels for these groups come from an array o ...
I'm trying to provide an interface to "pre-load" a table from a spreadsheet file. Sounds simple, but I'm making heavy weather of it, being a complete ...
I've been using the sanitize method in a Rails 4 app to scrub a page which displays html that users generate to prevent unsafe things like script inje ...
I'm using highlight method to mark words in texts. So, my problem is when i try to highlight little words that can be "sub-words" than others. Ex.: ...
Hi i have tried almost everything and cant get this to work. The title.capitalize part doesnt get displayed. I tried using "+" but then i get error ab ...
Is there an easy way to remove options attributes for the tag or content_tag helper? In this example, I'm wondering how to remove the data-hyperlin ...
In my spec I use AssetUrlHelper: so that I can test a page that should display an absolute URL to one of my files. I thought asset_url should do th ...
I have an active model model that I would like to use form_for with. I am choosing the url this way because the named paths have 'api_' prepended. ...