similar to: help please!

Displaying 20 results from an estimated 20000 matches similar to: "help please!"

2009 Feb 25
0
Routes with parameters ordered differently
Hi, i''m trying to setup a custom route and having some trouble. In various resources i''ve seen plenty of examples of how to do something along the lines of: map.connect "foo/bar/:a/:b/:c", :controller => "foo", :action => "bar", (and :a,:b and :c get mapped to params[]) what i''d like to do is make a mapping of the form
2006 Mar 18
2
Additional link tag attributes with link_to_function...
Hi, I''m having a bit of a struggle with link_to_remote. Everything works exactly as I want it, but the problem is that I want to add another attribute to the <a>-tag, namely class="". Long story short, I want specific links to look differently from others, but all of them being link_to_function. Normally, I''d do this with adding a class="foo" to
2011 May 25
1
warning: toplevel constant SomeController referenced by Admin::SomeController
This issue has been discussed before (http://www.ruby-forum.com/topic/ 125392) and after spending a while debugging through this, I still don''t have a solution. Lets try again? I have two controllers, SomeController and Admin::SomeController. When SomeController is loaded first (which happens under spork, found out by editing ActiveSupport::AbstractController) I get warning: toplevel
2010 Nov 05
4
subsets, %in%
Hi, I have a question about %in% and subsettin data frames. Say I need to keep ID 1,2,4,5, 10 from the data frame dat. I can do: dat <- data.frame(ID = 1:10, var = 1:10) someID <- c(1,2,4,5,10) subset(dat, dat$ID %in% someID) Is there a quick way to do the opposite, ie to do a subset that contains all ID but someID? Something like %not in%, which would *remove* lines with ID in
2013 Jun 20
3
Samba+LDAP: NT_STATUS_UNSUCCESSFUL because of primary group SID mismatch
Hi, I'm trying to get my new samba server running for a few days now and I start losing my mind over not figuring out what I'm doing wrong. Here's my setup: OpenLDAP 2.4.21 server with ~15 groups and >100 users, all having a unix and a samba NT password stored in the LDAP as well as a User SID and Primary Group SID assigned and stored in the LDAP, derived from the SID of the LDAP
2006 Jul 24
0
HTML YAML Builder
Is anyone interested in a YAML Builder for HTML? Some trivial YAML that could be converted to HTML: html: - head: - title: My title - body: - p: - {!id: someId, !class: class1 class2} - Hello - img: {!src: someurl.gif} - hr: - ul: [{!id: someId}, {li: hello}, {li: goodbye}] - ul: - {!style: "height: 30px"} - li: [{!id: first}, First] -
2005 Dec 22
0
RE: Re: ajax - multiple updates on singlexmlhttprequest
>From looking at the Prototype code, it looks like any text in the ''X-JSON'' header will be eval''d and passed as the second parameter to your onSuccess handler. Your handler function could then be (using all the power of Prototype): var handlerFunc = function(t, json) { // Update info container Element.update(''someId'', json.foo); } But your
2009 Apr 24
4
Undefined method "redirect_to" in before_filter
Code sample: class SomeController < ApplicationController before_filter do |c| add_crumb "Blah", "/blah" #breadcrumbs plugin redirect_to :controller => "foo", :action => "bar" unless c.send (:has_package?) end # Rest of the controller... private def has_package? # A bunch of logic work to check to make sure # somebody''s session contains
2006 Jun 04
1
Problem with images on Apache and Lighttpd
Hello. Since two days I am trying to set up two rails-apps on a vserver-host so that I can access from work ;-) I tried all I can imagine and what Google/MSN teached me: FastCGI, SCGI, Lighttpd, Apache, Alias, Vhosts,.... But nothing really works. I am on Debian 3.1 with Ruby 1.8.4, Rails 1.1.2, FastCGI 2.4.0, mod_fastcgi 2.4.2, ruby_fcgi 0.8.6, ruby_gems 0.8.11, Apache 2.0.54, Lighttpd
2006 Apr 28
4
can someone help DRY a noob? thanks...
hi all i''m trying to pass a variable name right round the block and need a hand to ease my aching brain. ##in my sidebar i have <li><%= SidebarItem(''catalogue'') %></li> <li><%= SidebarItem(''provenance'') %></li> <li><%= SidebarItem(''status'') %></li> ##linked to a
2006 Jul 02
1
faster server
Hi All, I am running a Rails application on a VPS using Lighttpd/Debian-Stable and it seems something is slowing the whole thing down. If I watch the production log - it seems the website is rendered quite fast but when I reach the website using my favorite browser (or even my less favorite..) it is loading too slow. Thanks, D. -- Posted via http://www.ruby-forum.com/.
2008 Oct 15
2
Adding an id to form_tag
Hi all, When using form_for it is easy to add an id to the form using :html => {:id => ''someid''} However, how would one accomplish the same when using the form_tag ? Thank you in advance, Schalk --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post
2012 Dec 01
6
Why does 'extend ActiveSupport::Concern' cause `undefined method 'recycle!'`?
Working on Rails Engine. I want to make the controllers customizable whereever the Rails Engine is used. Therefore, I was trying to use `extend ActiveSupport::Concern` on the Engine controller class and include it in MyRailsApp. https://gist.github.com/4185823 # code in my rails engine moduel MyEngine class SomeController extend ActiveSupport::Concern def engine_some_method
2008 Oct 10
16
rspec - undefined method `describe'' for main:Object
When i run a spec file i am getting the following error D:\Diwakar\spec_diwa\spec\controllers>spec sandbox_controller_spec.rb c:/ruby/lib/ruby/gems/1.8/gems/rspec-0.5.15/lib/spec/api/sugar.rb:17:in `method_ missing'': undefined method `describe'' for main:Object (NoMethodError) from ./sandbox_controller_spec.rb:7 from
2008 Mar 13
2
Please vote for your favorite Wine-1.0 bugs...
The 1.0 release of Wine is tenatively scheduled for the 15th anniversary of the project (roughly 1 June 2008, if you take Dan Dulitz' message as the start of the project, http://groups.google.com/group/comp.os.linux/msg/7f92abdf494ab8b3 ) Over the last six or so months, the wine developers have identified 180 or so bugs as possibly being worth fixing before the 1.0 release. 63 of the Wine
2007 Jan 18
2
How to use API from AWS -- help!
I''m building a users web service (direct dispatching) that will (I hope) allow several other applications to manage the same pool of users. Plus it will act as a single-sign-on solution for what I''m doing. But I''m having difficulty accessing the UserAPI. Here''s what I''ve done so far: $> rails usermanagement - "usermanagement" is the
2006 Jun 02
5
scriptaculous autocompletion LIMIT and ajax vs. local
Hi, I am using scriptaculous ajax autocompletion (not local autocompletion). I have 2 questions: 1 - The database query being sent to the server always has LIMIT 10. I don''t want to have a limit, but I just can''t for the life of me find where this limit is set in the code. I did see "choices: 10" in controls.js but that''s for autocompleter.Local, which I
2006 Jan 23
16
Adding form fields (extending a form) on the fly
Hello, I just can''t seem to find a way to extend a form dynamically in ROR. Say I am writing a recipe website. There is one form to enter the recipe. There is room for N number of ingredients (let''s say a text field for each ingredient name and selection list for the amount). What if the user wants to add more than N ingredients as he types them in? how do I do this without
2012 Jan 24
2
How would you do this in ajax in rails 3
I have a rails 3.1 app and I am curious how you would do something. I have a link_to remote option true button <%=link_to "Add to your Favorites", add_favorite_url(movie_star),:class=>"btn small primary" %> I need to submit this to the users controller via ajax do some stuff then set the button to say that the favorite has been added. Can you please tell me how
2005 Mar 05
3
routes inconsistency?
Hello, As a small excercise in learning rails, I''ve been porting a very simple website from SSI to rails (yep, a bunch of static files that were previously served with a tiny bit of SSI magic are now served by a database-backed rails, it''s total overkill, I know). Part of the reason is that I''m trying to move from apache to lighttpd, and lighttpd''s SSI for