0
votes
1answer
58 views

Twitter Bootstrap Modal submit button to submit and open modal in Rails

I have the following Twitter Bootstrap Modal button (haml) - I want to use this button to save my form then open the modal dialog to ask if I want to print it. How Can I make this button perform a ...
0
votes
0answers
20 views

is there a way in a rails app to implement an ajax form within a modal dialog, without submitting twice?

here's what i actually did until now: 1) I'm loading asynchronously some content into a modal dialog with ajax, this way: <a role="button" class="btn" data-remote="/establishments/<%= ...
0
votes
1answer
78 views

How do I redirect to open a modal

Say I have a comment section and when a user enters a comment, if the user is not logged in, I want to show the sign in form in a modal box. Once the user is logged in, it should proceed to post the ...
0
votes
2answers
284 views

How to add pagination inside a bootstrap modal

I have a user's list, when click on 'show activities' this shows a list of user activities in a modal from partial file _user_activities.html.haml. This activities list is a paginated view. I want to ...
0
votes
2answers
125 views

how to not improve this code to not repeat the twitter bootstrap modal?

I have a Project that have many Pictures. I am using the first picture as a link to call a twitter bootstrap modal, where some information will be displayed as well as the link for the project`s page. ...
0
votes
2answers
805 views

Twitter Bootstrap - how to make modal window responsible on mobile devices?

I have an issue with Twitter bootstrap modal window on mobile devices - when I load the modal window there, the screen get dark, but the contact form in the modal window is nowhere. I browsed SO and ...
1
vote
1answer
137 views

ActiveModel multi-step form not showing next step

So I have been working on a multi-step form in ruby on rails (1.9.3) using Active model, following both the railscast #217 and #219 and am having problems with routing to the next steps in my form ...
2
votes
2answers
366 views

ClientSideValidations Not Show in Twitter Bootstrap-Modal Rails 3.2

i using clientsidevalidations gem and twitter bootstrap-modal for my app. but vaidations not working. on application.js //= require bootstrap-modal this is element for show in modal dialog ...
1
vote
0answers
45 views

Firing Javascript from rails helper

I have a javascript function that shows a login pane above what's currently on the page. I know that in my controllers I can do: respond_to do |format| format.html format.js end But I want to ...
0
votes
1answer
183 views

Modal-dialog loading jquery executing in console but not loading from the application.js

I have an app that is using twitter-bootstrap and I am trying to implement a button that would launch a modal-box loading users/new path. I am able to do this but only if I input the javascript ...
2
votes
1answer
380 views

Switching from facebox to SASS bootstrap modal

I want to switch from facebox to the SASS version of bootstrap modal for my new projects. With facebox I just had to add :rel => "facebox" in my link_to(...) : <%= link_to "My Action", ...
1
vote
2answers
427 views

Not able to render a popup in rails 3.1

I want to render a popup if a link is clicked. I have got two actions home and test inside pages controller:- In the pages/home.html.erb view if I do <div id="myModal" class= "reveal-modal"> ...
1
vote
1answer
134 views

rjs type error in rails?

I add a link_to_remote to load a modal dialog box from a partial. But when I run the application I get the following error.. RJS error: TypeError: $("create_event_dialog").dialog is not a function ...
1
vote
2answers
2k views

Adding an onclick option to link_to method in rails?

I want to add an onclick option to link_to method for loading an modal dialog box...i am using rails version 2.3.8 and i searched on google and could not do it. Plz anybody help me? My link_to method ...
0
votes
1answer
658 views

Simple Modal while processing data

I want to use Simple Modal to present a div while my rails app is processing some data on create. I want the page to then disappear when the show page should load. Right now, I'm presenting the modal ...

1 2
15 30 50 per page