I followed http://railscasts.com/episodes/228-sortable-table-columns to make a sortable table on my records index.erb
So everything works good for that, but now I've gone back to my homepage and put ...

I thought this would be simple but maybe I am over-thinking it, I am trying to subtract from a value in one database and use a second value in that table to modify yet another value in another table ...

I've created a marketplace site where my users (sellers) create collections and then add listings to each collection to sell. Any shopper can now shop by all listings (Home page) or by all collections ...

My users create collections and add listings to each collection. I have a main profile page for each user showing all collections created by that user. Now I want to link from each collection to an ...

In my project of asp.net mvc I have 2 controllers ( controller1 , controller2 ).My purpose I want to get view from controller2 and show on master page. But controller1 set as default controller ( set ...

I would like to wrap a conditional link_to around some code that only renders the link if the following condition is met: IF current_user.type == 'Agent'. The content within the condition still needs ...

I'm trying to create a cancel button in a rails view, which links to a PATCH/update method. I want to pass a query string parameter -- update_action: "cancel" -- so the update method knows that this ...

I'm trying to make a link_to block (link_to with do) within an interpolation for a helper that will be called many times, so i only want to have this code once in my project. But when i try to execute ...

I'm pretty new to rails and I'd like to set my links for a certain page dynamically. I have a table called "Unfinished" and it has a column called "link" (corrected from "links") I'd like to be able ...

I currently have a user input a URL link, which is stored inside content.
When I display the given page, the links are highlighted similar to a link, but do not actually redirect the user to the URL.
...

I have a link_to on my page and when I click on it, it takes me to the correct page, but no javascript gets executed. When I refresh the page, it works fine. How do I fix this so that link_to actually ...

Here (below) I'm able to set the params variable (i.e., params[:archive_id]), but I want to do the equivalent in a session variable and without relying on AJAX, which was offered as a solution to a ...

I am using Rails 4 with the adminlte-rails gem. Even though 'dashboard' is a valid route, it will only let me link to it using regular instead of link_to. Every time I use link_to, the section with ...

I'm using Rails 4.0.10. I have a show and edit view for a model. The show url is just model/id, and the edit url is model/id/edit. What I can't figure out is how to create a link on the show page that ...