Posts by Rodrigo Barreto • 191 points
10 posts
-
-1
votes1
answer47
viewsQ: Leave a specific option selected when using a select
I am generating a select passing some options as shown in the code below select name="listing_search[realty_types][]" - Realty.translated_realty_types.each do |k, v| option value="#{v}" #{k} How do…
-
0
votes1
answer46
viewsQ: Automatically save to bank after changing select value
I am using Datatable to show a table to the user with some information, in one of the columns (Status) is displayed a select with options. I want it to be saved in the bank automatically when…
-
0
votes0
answers63
viewsQ: Make a text with overflow-x: Hidden move automatically
I am fixing the width of the li and sending all the text that exceeds stay Hidden, now I would like to make the part of the text that this hidden automatically move to appear on the screen. HTML: ul…
-
12
votes3
answers6427
viewsQ: Style input type='number' to change arrows
How to customize the input type='number' as the image below? Click on the +/- sum or subtract the number inside the box. Currently my code is: .bedrooms = f.input :bedrooms, :label => false, as:…
-
0
votes1
answer54
viewsA: Direct button depending on whether the user is logged in or not
I did it this way and it worked li= link_to_if(@current_user.nil?, "Anuncie seu imóvel", new_user_session_path, class: "button") do = link_to 'Anuncie seu imóvel' ,new_subscription_path, class:…
-
0
votes1
answer54
viewsQ: Direct button depending on whether the user is logged in or not
I have a button that leads to another screen, but if the user is not logged in to the system he should redirect to the login screen and not to the one that is already going. You can do this directly…
-
1
votes3
answers1199
viewsQ: How to make these radio buttons checkbox style, and change the value of a text depending on the choice?
I need to put in my site as is in this image. I’ve done in HTML and CSS the square with the price. I don’t know much about JS and I’m not getting to make the left squares. By clicking on "No…
-
1
votes1
answer54
viewsQ: How to display to admin the specific data of each user chosen with Rails
In the administrative part I’m doing my Admin can view all Subscriptions performed by users in a table (this part is working perfectly) Code of my admin controller, def index @subs =…
-
1
votes1
answer268
viewsQ: Accordion table in single row
I’m working on an Rails app. I’m currently working on the front end. I have a table of how it behaves on large screens. but when reducing the screen (cell phone size) I would like it to be in…
-
3
votes2
answers495
viewsQ: Separate a column of the database in two and take the values of users already created
I have a table of users in the database with a column NAME, but it will be necessary to separate between NAME and SURNAME. My question is: will users already created in the bank have to be edited…