Displaying 20 results from an estimated 130 matches similar to: "Advanced search without database"
2009 Oct 06
0
Named routes and a Railscast
I''m looking at railscast#102 ( http://railscasts.com/episodes/102-auto-complete-association
) and when I implement it, a certain named
( "formatted_channelnotes_path(:js)" ) route is used in:
<%= text_field_with_auto_complete :channel, :channelnote_name, { :size
=> 15 }, { :url => formatted_channelnotes_path(:js), :method
=> :get, :param_name =>
2013 May 13
0
Middleware example from Railscast #151 doesn't work as expected. Need help.
My middleware class "ResponseTimer" doesn''t intercept a request. I don''t
know why (the example is from here
http://railscasts.com/episodes/151-rack-middleware?view=asciicast; I
changed my one a little for Rails 3.2.13 version, the original is for
Rails
2.x).
So I did as follows:
## in \lib\response_timer.rb
## this is the class of my custom middleware:
class
2013 Feb 12
2
Rails parameters get lost because of jQuery link
(Original
post: http://stackoverflow.com/questions/14569721/rails-parameters-get-lost-because-of-jquery-link,
unfortunately no response)
I saw this Railscast (
http://railscasts.com/episodes/240-search-sort-paginate-with-ajax) the
other day and wanted to use the techniques for an application of mine. I
have a page with elements on it and I want to sort them by values and
select them by tags.
2008 Oct 24
4
Railscast 75, Observe_field and Shopping Cart
Hi all,
I have the shopping cart page where a user can add items dynamically
through ajax as explained in Railscast episode 75. I am using
observe_field to observe the ''quantity'' and ''cost'' fields to update
the total field for each item.
This does not work however, for records that are added through the
Ajax. How can i name the fields and observe them as i have
2011 Nov 01
2
Railscast 262 different partial in helper
Hi RoR Community,
in Ryan Bates Railscasts Episode #262 he put the index code
<% for message in @messages %>
<div class="message">
<div class="created_at"><%= message.created_at.strftime("%B %d, %Y")
%></div>
<div class="content">
<%= message.content %>
</div>
<div
2010 Mar 31
5
undefined method `each' for "":String
I implemented creating an object within another object according to
this Railscast:
http://railscasts.com/episodes/74-complex-forms-part-2
but I''m getting this error after I submit. Any ideas?
undefined method `each'' for "":String
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this
2010 Nov 14
5
Authlogic and rails 3 : NameError in User sessionsController#new
Hi everybody,
I''ve installed Authlogic on Rails 3 following the Railscast (http://
railscasts.com/episodes/160-authlogic), and the resources I was able
to find on the web, but I''m facing a problem.
Once I''ve generated the user_sessions controller and mapped the login
and logout routes, I get an error if I try to load the login page :
uninitialized constant
2009 Sep 24
13
Rails Authentication Tutorial
Does anyone know a good authentication tutorial they can suggest? I''ve
tried several restful authentication ones and an authlogic one on
RailsCast. But with each one I try, something seems to be missing in
the tutorial and I can''t get it to work. I''m new to Rails so it''s
possible user error on my part.
I''m on Mac OS X 10.5 and I generate all my apps in
2010 Oct 31
4
Newbie - Rails 3 authentication question (Devise)
Hello!
I''m working on my first Rails app and I have a question regarding
authentication. I already have authentication for signing up, logging
in, logging out, etc. What I need is an account email activation
function and a reset password (forgot password) function. I have read
a little bit about Devise and watched the Railscast episodes on it, it
seems nice, but is it possible to add
2009 Oct 27
14
Authlogic Password confirmation is too short Error. NEED HELP.
Hi:
I am using authlogic, and following railscast tutorial. I am running
into this error code with the password confirmation.
authlogic password confirmation is too short
Has anyone experienced this error? I need your help.
Thanks in advance for your help.
2010 Feb 09
2
undefined method `generate_token'
Hi Everyone...
I''m following a railscast episode on how to implement an invitation
feature.
It''s going really well, but i''ve hit a minor snag that I cant get
over..
undefined method `generate_token'' for #<Invitation:0x2563bf8>
The invite form allows me to check for a user, and whether they
already have registered. If they have, the invitation is not
2011 Dec 20
4
Custom Devise Controller
Hi Guys,
I was wondering if sb could help me.
I have the following problem:
-I want to create a complex form using railscast tutorial (
http://railscasts.com/episodes/73-complex-forms-part-1). Well, to perform
this I need to update my controller(in this case the controller responsible
to manipulate user).
But I''m using Devise gem and I don''t know how I could manipulate the
2010 Apr 12
3
$(link).previous("input[type=hidden]") is undefined
I am getting this error when trying to use the remove link explained
in the Railscast:
http://railscasts.com/episodes/197-nested-model-form-part-2
error:
$(link).previous("input[type=hidden]") is undefined
remove_fields()applic...1065175 (line 6)
function onclick(event) { remove_fields(this); return false; }()1
(line 2)
[Break on this error]
2011 Aug 17
3
file uploading controller
how to upload a video,document and a audio (of any format) within the
same controller and within the same form?
is it possible to do that?
if not then what is the solution?
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
2008 Mar 31
10
Paginate with Rails 2.0.2 question
Hi,
So I''m using @post_pages, @posts = paginate :posts, :per_page => 10
to paginate.
But I have rails 2.0.2 on my VPS. Now this version of paginate throws
an error. What happened to classic pagination and what is done now?
Thanks,
Ron
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on
2008 Jan 23
2
integrate_views is not executing my views
I wanted to use "integrate_views" as Ryan explains in his RailsCast #71
(http://railscasts.com/episodes/71)
...but I can''t get it to work: the view code in not executed
I looked everywhere but I can''t understand what I am doing wrong.
Here is what I did:
I created a new application from scratch (Rails 2.0.2), added rspec and
rspec_on_rails plugins, and run
2007 Dec 26
2
Overriding or changing HTML generated by date_select?
Hi,
I''m looking for a way to customize the HTML forms generated by
date_select. I''m especially keen on replacing the year and possibly
day input by a simple text field, since honestly, I find listboxes for
years to be quite retarded (if I wanted client-side validation, there
would be better ways to do that instead of having people try and find
their year of birth in a list of
2010 Aug 18
2
auth logic - password confirmation
Hi, newbie here. :)
i have this form on a test rails app:
<% form_for @user do |f| %>
<%= f.error_messages %>
<p>
<%= f.label :username %><br />
<%= f.text_field :username %>
</p>
<p>
<%= f.label :email %><br />
<%= f.text_field :email %>
</p>
<p>
<%= f.label :password %><br
2010 Oct 25
2
form_tag with remote=>true Error during failsafe response:
I am trying to find out why form_tag with remote => true is not
sending an ajax response and only sending HTML. I have started a basic
Rails App with two pages and am following the Railscast 205 UJS
example. Every time I include:-
<%= form_tag homepages_path, :method => ''get'', remote => true do %>
I get from the server(WEBrick):- (Ruby 1.9.2 and Rails 3)
A 500
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