similar to: make layout false

Displaying 20 results from an estimated 10000 matches similar to: "make layout false"

2009 Jul 20
2
render :file in another window
is there a way to render a file in another window I wrote : def show @asset = Asset.find(params[:id]) respond_to do |format| format.html format.xml { render :xml => @asset } format.pdf {render :file => @asset.data.path } end end this render in the current window.... thanks for your suggestions erwin
2006 Jul 07
2
disabling a layout before calling javascript window.open
Hi, I have some code in which i open a pop up when a user clicks on a link. However, the new popup window comes with the layout of the page on which the user clicked the link. I would like to remove the layout only from the new window which is created with the javascript window.open - any ideas thanks -- Posted via http://www.ruby-forum.com/.
2008 Jul 12
4
Act as Taggable with Rails 2.0
I''ve posted a different question just before -- but before I can try and get a better idea of my error message, I was trying to start my application and ran into other problems. My application was developed last year in rails 1.2.3. I since upgraded my computer and have the latest version of rails. When I tried to star the application I got the following error message:
2006 May 23
6
Accessing file in public directory
How do i access a file in the public directory of rails application? I have several html files in there and i want to link them from the rhtml file. Basically to display a popup. Here is the code in foo.rhtml: <a href="javascript:popUp(''/summary.html'')" class="normal">Learn more</a> It doesn''t work. Any idea why? Thanks, Lantis. --
2009 Aug 06
13
Redirect after login
Hi, I''m new to Ruby/RoR so please bare with me! I''m trying to adapt a ruby setup where someone logs in to a bonjour service via a web browser. I have the login screen which asks for host and password. There is only one user per host and i can log in fine. It''s suppose to redirect me to /list in my browser but doesn''t. Once i''ve entered the correct
2009 Nov 12
9
uninitialized constant XML::Document
Hi All, I have installed "libxml-ruby" gem on my ruby instllation. while trying to create xml document with ruby progam in Rad Rails am getting error like "uninitialized constant XML::Document (NameError)" do i need to config any thing else in environment.rb file Thanks in advance Chinna. -- Posted via http://www.ruby-forum.com/.
2009 Aug 06
6
initializers
I created a "config/initializers/tasks.rb" In it I have the following is all: logger.info("Running tasks") However nothing is logged or run. Am I missing something? -- Posted via http://www.ruby-forum.com/.
2014 May 22
3
Host OS, Storage Info
Hi, Is there any way to get host OS information and host Storage in formations using libvirt API...? Rgds -Sijo
2008 Oct 27
8
pagination in ajax
hi, I am curently using rails version 2.1.1. Currently i have done simple pagination using will_paginate plugin.it works.but when i am trying pagination using ajax with help of will_paginate plugin it wont works.i am also using RemoteLinkRenderer helper, but it gives an error uninitialized constant RemoteLinkRenderer. can anyone provide any tutorial or sample code so that i can
2007 Jul 24
1
Popup Content Without Application Layout
I am building a page that uses ThickBox (http://jquery.com/demo/thickbox/) to display details about a record. A user clicks a link on the page and a ThickBox pops up showing the record as HTML. Unfortunately since I have an overall layout setup in my application layout, that HTML is showing in the small popup box and it doesn''t match. How do I remove the added layout for just this
2009 Mar 17
3
Getting Error
Hello, I am a rails newbie. I am using ruby 1.8.6, rails 2.3.2 & chrome browser in windows XP. I was trying out a hello world application. I ran the following commands. ------------------------------------- rails> rails demo rails> cd demo demo> ruby script/server ------------------------------------- And when I open http://localhost:3000/ in my browser, I get a "Welcome
2009 Jun 02
3
valdate_presnce_of email, :if => :validate_id + Factory girl
Hi In the model I have User attr_accessor :validate_email_id validates_presence_of :email ,:if => :validate_email_id Could anybody please tell me how can I define a Factory for the above? Thanks in advance Sijo -- Posted via http://www.ruby-forum.com/.
2008 Sep 20
1
simple_captcha does not work in test environment
Hi, I have been using simple_captcha and it works fine and make myself happy. When I moved my app to test environment, It does not throwing message when the letters in the image does not match with the user entered text and it works well in my development environment. Can anyone tell what will be the problem or How should I overcome this? And I am afraid of use it continuously for my
2009 Oct 29
4
manipulating form
Hi, I work with forms and i won''t to set a name for a form to use javascript functions.. How can i do Thanks
2009 Aug 05
1
nomethoderror : undefined method post
HI, I am trying out some examples form this book "Build Your Own Ruby on Rails Web Applications" I have two views app/views/story/01-new.rhtml and exact ditto app/views/story/new.rhtml except the action is pointed correctly to itself in both 01-new.rhtml and new.rhtml. I started the server and I can access localhost:3000/story/01-new.rhtml. but when I try to access
2014 Jun 06
2
Libvirt Python Bindings - Remote Connection using openAuth.
Hi, I am using libvirt with python binding, and I want to connect to a remote host. I was able to connect after making ssh certificate, but It is not applicable for my project. So I want to use openAuth() method, but I could not succeed connecting to a remote host using it. Here is my code ------------------------ import libvirt USER = "root" PASS = "mypasswd" def
2014 Jun 06
1
Re: Libvirt Python Bindings - Remote Connection using openAuth.
Martin, What do you mean by libvirt credentials...? -Sijo On Fri, Jun 6, 2014 at 1:57 PM, Martin Kletzander <mkletzan@redhat.com> wrote: > On Fri, Jun 06, 2014 at 01:06:55PM +0530, Sijo Jose wrote: > >> Hi, >> I am using libvirt with python binding, and I want to connect to a remote >> host. >> I was able to connect after making ssh certificate, but It
2007 Jul 31
2
link_to
Im trying to use the link_to helper to open a blank window which is basically just a framed window to display user info without all the extra distractions that come along with opening this window. Here is what I got: <%= link_to ''Airline Preferences'', {:action => ''airline_preferences'', :id => @user.id, :method => ''post'' }, :target
2006 Jan 29
1
Works with iframe, but not ajax... ?!?
Hello all, I''ve run into trouble attempting to replicate something in ajax that worked when done with an iframe... In both cases I have a table inside a div that is being periodically refreshed every few seconds... The 1st column of each row in the table contains a link to a DHTML popup menu. I have the popup menu working in the ajax version. The problem is that in the ajax version
2006 Jul 27
17
How do you stop a Ruby method from executing?
Hey guys, How do you stop Ruby code from executing? For example, def newaction puts "1" return puts "2" end I tried return in the following example, but it continues and than looks for newaction.rhtml. How do I stop it completely dead in its tracks? -- Posted via http://www.ruby-forum.com/.