similar to: What''s the best way to embed a form?

Displaying 20 results from an estimated 1000 matches similar to: "What''s the best way to embed a form?"

2006 Apr 10
4
has render_component changed?
I have an application that worked fine, but after the recent updates has broken in some calls to render_component from views. I might be missing something but as far as I remember Rails updates is the only thing I''ve done in between. See the log: *** START LOG SNIPPET Start rendering component ({:params=> {:center_id=>10, :id=>25},
2006 Mar 21
1
What is the difference between render partial and component?
What is the difference between the render(:partial => ''article'') and render_component? -- Posted via http://www.ruby-forum.com/.
2006 Mar 22
7
What is difference between render & redirect methods?
Hi, Thest are two methods:- 1) redirect_to :action => ''list'' 2) render :action => ''list'' what is difference between these two methods?????? Thanks. Prash -- Posted via http://www.ruby-forum.com/.
2006 Feb 05
4
Another layout question - Layouts on a per method basis - Layouts with AJAX
I feel I am very close to understanding how layouts are used in Rails: Q1. I know one can specify a "default" layout for all methods in a controller by specifying layout ''my-default-layout'' How can this be overridden for individual methods so when those methods are called/executed, the overridden layout will be used. Is this possible? Q2. With no
2006 Jan 01
4
Agile book deltas
Are there deltas for the revisions of the PDF version of the Agile book? -- fxn
2006 Mar 14
5
How to display different images using ajax?
Hi! On my page i display one full size image and a list of thumbnails. I''d like to change the full size image with a full size version of a thumbnail, after clicking on one of them. How to write controller action, so it would update the image without reloading the whole page? It''s easy with text, but how to reload an image? -- Posted via http://www.ruby-forum.com/.
2006 Feb 02
19
No more logs after SVN?
Hello, Yesterday I "subversioned" my app using svn and now everything works fine except I don''t see any log entries in development.log? What would cause the log entries to be not produced anymore? Thanks Frank --------------------------------- Bring words and photos together (easily) with PhotoMail - it''s free and works with Yahoo! Mail.
2007 Aug 21
7
Signin to LinkedIn
Hi, Does anyone have the formula for getting logged into LinkedIn? Here''s my current attempt: require ''rubygems'' require ''mechanize'' agent = WWW::Mechanize.new home_page = agent.get(''http://www.linkedin.com'') signin_page = agent.click home_page.links.text(''Sign in'') puts "\nSIGNIN PAGE"
2006 Mar 15
3
Any one who can help with how to implement such a login?
http://www.wayfaring.com/ I think it is implemented using rails. For if u input the wrong url,u can see a "rails" style error hint. I really like its ajax login system. from the source of the homepage,it can be seen the login part is: <div> <h1>Log In</h1> <form action="/account/login_ajax" method="post" onsubmit="new
2006 Aug 02
3
Need help with registration page
I have most of my books open as I''m trying to create this app. Still not sure how to make this work - hopefully some help / hints can get me further. First I used the "authorizing users" recipe from Rails Recipes. Though I did add some more generic type of registration fields (email, address, etc). I want the registration form on the main page(index) of the site. What I have
2006 May 25
5
Setting a global before_filter action in application.rb
Can you set a global before_filter action in application.rb? So, for example, you could control authentication for all of the controllers in an app.? Obviously, you would need a way to reference actions by controller within this "global before-filter". Thanks, Wes -- Posted via http://www.ruby-forum.com/.
2006 Aug 10
4
1.1.5 Upgrade and config.load_path not working
Hey, I am trying to upgrade to 1.1.5 and rails no longer finds my controllers the live outside app/controllers. I was on 1.1.2 previously and here is my setup In environment.rb config.load_paths += [File.join(File.expand_path(RAILS_ROOT), "rails_shared/controllers") ] config.load_paths += [File.join(File.expand_path(RAILS_ROOT), "rails_shared/helpers") ]
2006 Mar 18
1
change HTML gnerated by form_input
How do I change the HTML code generated by "form_input" ? Is there a way to specify a templete or something like that ? Thanks /Simone -- Posted via http://www.ruby-forum.com/.
2006 Feb 16
9
calling a controller/action from another controller
Hi, Is there a way to call a controller/action pair from another controller as well as render the view for that pair? I have tried using "render ''ctrl/action''" and that works, but the controller code isn''t called (only the view is rendered). A redirect_to isn''t desirable either as I want the resulting content to be rendered in the current
2006 Jan 30
4
How to encode URLs?
How does one encode URLs in ROR? Thanks Frank --------------------------------- Bring words and photos together (easily) with PhotoMail - it''s free and works with Yahoo! Mail. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060130/60280869/attachment.html
2006 Apr 21
1
Catch authentication result from a model in a controller
Im still following the authorization recipe from the book, now all works fine but im getting trouble in how handle the model authorization result, if the user and pass are correct, it goes to a welcome screen(admin.rhtml) but if wrong the model prints a message in an ugly exception like page "usr and pass not correct", i want to redirect the user to the login
2006 Feb 13
11
ROR code syntax highlighting on blog?
I am interested in putting the cool syntax highlighting for ROR code. What''s the best way to do that? Is it using textilize or another formatting language? Or do I need special stylesheets? Any assistance is appreciated. Thanks Frank --------------------------------- Yahoo! Mail Use Photomail to share photos without annoying attachments. -------------- next part
2006 Apr 11
1
dev mailing list?
Is there a dev mailing list? I would like to ask developers whether the special handling of :id in render_component[*] is actually a bug, and in that case how to revise the signature according to how rails evolves. Or should I do that through a ticket directly? -- fxn [*] http://wrath.rubyonrails.org/pipermail/rails/2006-April/032635.html
2006 Jun 22
5
Problems with layouts
ruby script/generate controller Tools::Search - ok in views/layouts/application.rhtml: <%= render_component :controller => ''tools/search'', :action => ''searchbox'', :params => {:context => ''header-section''} %> in
2006 Mar 15
5
Passing params to a component
I see from http://rubyonrails.org/api/classes/ActionController/Components.html that is possible to pass paramaters to a component. I don''t understand the exact syntax. I''m trying: @master_id = @params[''master_id''] in the components controller but it is not working. ==== Details: In my calling view I have: <%= h(@opportunity.id) %> <div