similar to: Rails 3: link_to with "data-confirm"

Displaying 20 results from an estimated 40000 matches similar to: "Rails 3: link_to with "data-confirm""

2011 Sep 06
8
Ajax and rails 3 UJS (jquery)
Hi, guys, I''m in the midst of moving an app from rails 2.3.8 to rails 3.0.9. Sadly, rails 3 no longer has javascript generators and I''m now forced to do more javascript. For my project, I have selected jQuery as the javascript framework for my rails 3.0.9 app. What I have done to have my app''s deletion link (for each item) trigger an alert box when the deletion
2010 Oct 21
4
Authlogic + Rails3 - undefined method `Login' for nil:NilClass
Im new to Rails, and decided to start of with Rails3. After a lot of searching ive managed to get a little bit of Authlogic working. I''m able to register a user, login & logout. Now, I would like to add more features, get more of authlogic working. I''m using Railscast EP 160 as my reference. Portions of the code found on the tutorial throw errors: Eg: <!--
2006 Jun 20
4
Invoking MouseOver using link_to tag ?
Hi, How can we trigger a JavaScript built in function from a <%= link_to %> ie. i have the below statement in my view. I want to invoke a JavaScript function on "MouseOver" of this below text (''TestingMouseOverEvents''). <%= link_to "TestingMouseOverEvents" , :controller => "login", :action => "logout"%> Note: The
2012 Feb 29
4
how to use link_to with :remote=>true in rails 3.2.1
I m using Rails 3.2.1. how to use link_to with remote=>true -------------------------------------------- My Method in Controller def clickme @clk = "you click me" respond_to do |format| format.js { render :layout=>false } end end -------------------------------------------- My View In my new.html.erb file <%= link_to "click here",
2012 Oct 10
8
link_to with additional data
Hi, rails 3.2.8 I must be missing something basic (and it''s been driving me mad) because I am trying to send one additional data attribute to my controller from a link, but I can''t seem to get it into the params received by the controller. I have looked around and found answers, but none seem to affect my links. I''ve set up a dummy app with a home page and a single
2013 Jun 05
1
Link_to image_tag popup
Hello All, How can I add a popup in link_to image_tag? I am trying as :- <%= link_to image_tag(@user.avatar.url(:small)), ''/users/edit'', :popup=>[''original_image'', ''height=700,width=900''] %> It goes to the edit page. But it doesn''t opens popup. Is this the correct way to call a popup? How can I achieve this? Thanks,
2010 Aug 16
8
Executing js.erb file with :format =>'js'
Hi, I''m trying to get my javascript to execute after clicking a link on my page using :format => "js" here''s my link: <%= link_to image_tag("/images/icons/user_add.png"), add_contact_path(:profile_id => profile.id, :url => request.url, :format => "js"), :title => "Add person to your contacts"%> in my controller i have
2010 Aug 13
11
Link to remote and the equivalent in Rails 3
Hi WOW! Is Rails 3 another interesting learning curve. Just when I think I have a general working knowledge of Rails 2 ... things change. I''m trying to replicate the following in Rails 3: <%= link_to_remote image_tag("creditcard.png", :border => 0), :url => {:action => :make_payment, :type => "Credit", :id => @appt.id },
2010 Nov 04
9
Delete action is not working and redirects to edit action
Hello, i have a strange problem here. I have made a teacher controller using scaffold. All actions work fine but the delete does not. When i click the delete link, it redirects me to the edit of this teacher. I have restarted the server and i have tried in firefox (i use chrome) but problem still remains. Here is the code from my view. <%= link_to(image_tag("/images/
2011 Mar 07
3
.rvmrc file not working?
hello, i am trying to install gemsets but my .rvmrc file not working so i have create gem sets with the command rvm gemset create rails3 but when i am using rvm info its not showing the gemsets in the environment.. this is the content of .rvmrc file rvm 1.9.2@rails3 --create..help me guys.. thanks nishant -- You received this message because you are subscribed to the Google Groups "Ruby
2010 Sep 27
3
streaming response body to client?
So I''d like to stream my response body to the client. At least under Rails2, it looks like you can pass a Proc to render :text, to do that. I am in a Rails2 app right now, but will upgrade to Rails3 sometime in the next couple months, so don''t want to set myself up for failure. Anyone know the status of streaming responses in Rails3? Is it possible? Is there a different API
2012 Jun 26
2
Error with rake command
I am using Rails 2.3.8 application and when I enter rake command it gives following error : ms@ms-HP:~/OpenStreetView$ rake WARNING: ''require ''rake/rdoctask'''' is deprecated. Please use ''require ''rdoc/task'' (in RDoc 2.4.2+)'' instead. at /home/ms/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/rdoctask.rb rake
2010 Aug 23
7
Sharing sessions between a rails3 app and a rails2 app. Rails 2 app crashes.
Hey all. I have two apps. One is a rails3 app and the other is a rails 2 app. Using proxying I am routing actions in the myapp.com/foo to the rails2 app. It almost works! I can set a session variable and a cookie variable on the first app (myapp.com) and then read them on the second app (myapp.com/foo). It only works the first time though. If I go back to myapp.com and then revisit
2012 Dec 08
9
link_to popup
Hello All, I have a link. Which I want to open as a new window :- <%= link_to "Google", "https://www.google.com", :popup => [''new_window_name'',''toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes''] %> But it is opening in the same page.... Any suggestions how to do it ?? Even hover will be
2011 Mar 31
3
can i switch to rails 2.3.5 and run a rails 2.3.5 code??
Hi all, i have installed rails 3 using RVM . the prob is now i have two parallel projects where one is in 2.3.5 and another is in rails3. i use Mac o x 10.6.3 mysql :Server version: 5.1.56 MySQL so can i switch in between rails3 and rails 2.3.8?? this is my gem list... actionmailer (3.0.5, 3.0.5.rc1, 3.0.4, 3.0.3, 2.3.8, 2.3.5) actionpack (3.0.5, 3.0.5.rc1, 3.0.4, 3.0.3, 2.3.8, 2.3.5)
2010 Jun 21
9
[BUG] Segmentation fault
First of all, I use RVM and I installed ruby-1.9.2-head, which I used to create a new rails3 gemset. Then I changed to that gemset with rvm use 1.9.2-head@rails3 and I ran bundle install over the following Gemfile: source ''http://rubygems.org'' gem ''rails'', ''3.0.0.beta4'' gem ''sqlite3-ruby'', :require =>
2012 Feb 21
1
link_to 'Frob', '/thang/frob', :remote => true
Railsters: I have finally gotten back to Rails, and I''m having the usual "a little bit too flexible for your own good" problems. Specifically, the above in my Haml renders this: <a href="/thang/frob" data-remote="true">Frob</a> I need href=''#'' and an Ajax call. What did I do wrong? (Besides, ahem, attempt to read the fine
2011 Mar 26
2
Rails 3 + SSL
After reading tons of posts about buying certs, etc, I''m still confused. Please point me in the right direction. Here''s the question: I have a rails3 site (www.mysite.com). I want to have some pages use ssl, and some not. It appears the require_ssl approach is pre-Rails3 and there are other alternatives. Most of the posts I read talk about using a diff domain for ssl
2011 Jan 06
2
Link_to parameters
Hello, I would like to have a link_to automatically populate a field in the form that it is linking to. For example (excuse my silly words, im trying to make a point) <%= link_to "Add a COOL Post", new_post_path, :howcoolisit => ''COOL'' %> <%= link_to "Add a NOTCOOL Post", new_post_path, :howcoolisit => ''NOTCOOL'' %> Then,
2012 Oct 31
5
css background not showing
Hi all, for some reason adding the following is doing nothing... .post.hover { background: FAFAFA; I''ve got this in my posts.js coffee file $ -> $(''.post'').hover (event) -> $(this).toggleClass("hover") and my index is <% @posts.each do |post| %> <div class="post"> <strong><%= post.title %></strong>