I am creating applications where the menu structure is kept in a SQL database. Each user has a different menu depending on their permissions. The menu ...
I am creating applications where the menu structure is kept in a SQL database. Each user has a different menu depending on their permissions. The menu ...
I am trying to impliment search functionality for user records with first_name, last_name, email, project_name,feature_name. Here first_name, last_nam ...
I know i can use to_date or parse to convert a string to a date in rails, but how do i convert to a date if the string is of the format "01-2018", whe ...
I have a below string array object which has 4 elements. I want to compare the elements of this list to an string and want to check if string is part ...
I have parrent and child, child form is in parrent page so i can make children I want to redirect or render parent controller's show page in child's ...
Can i use variable for Rails link_to helper for making different link with variables? For example, <%= link_to users, users_path %> I have lin ...
ruby version 3.2.0 rails version 7.0.4 ...
I have a usecase, where I have two different array of object which consist of same attributes with different/same values. Ex: Now, When I am tryi ...
from this to this I have tried this, But could not figure it out. Any help will be appreciated. ...
Hi i'm freshman to Ruby on Rails. I'm trying to make current_user method and i have a question. Many Rails courses make current_user method like this. ...
Is there a method in Ruby similar to Python's difflib.get_close_matches("<target_string>", "[<array_of_strings>]") method? ...
assuming i have two models human and male, they both have similar attributes but not all the attributes, for example: now what i want to do is when ...
I have a enum and two Constant I have a method in that I have to check status is draft then in database I have to save value 23 and if status is pu ...
The error is as follows and I cannot figure out how to fix it - any more experienced people know what I am doing wrong? ...
I tried: if ! command -v ruby &> /dev/null then # - proverbot's version # First, install Ruby, as that is for some reason required to ...
Ruby version - ruby 3.1.3p185 (2022-11-24 revision 1a6b16756e) [x64-mingw-ucrt] Rails Version - Rails 7.0.4 Command = gem install mysql2 I have alr ...
Hi I am trying to extract a value from a Netsuite hash inside custom fields, and some others, which typically look like this - ` }` and want the va ...
The gems code_teams, code_ownership should allow one to tag files/whole folders by team name but after adding them to my project, running bundle insta ...
So I have a partial in my ruby app. I have a local variable "style" which is defined by some string. I want to render some h2 if this local var equals ...
I make objects in controller's loop. I need to check pet_name array before loop starts. (because i got undefined method 'each' for nil:NilClass when ...