Hey
My app has some buttons and i have route all to different action
in router.rb file but click on each button results in same action. why?
Am i missing to specify anything...)
Rails:3.0.7
Thanks in advance.
--
You received this message because you are subscribed to the Google G
Hi:
I'm new to RoR and I apologize if this is a dumb question but I've
read the guides, searched the archives and found nothing.
If I generate a model object and then the scaffold_controller the
result is different than just running the scaffold generator (the
_form partial has no fields in the f
Refer to this:
http://www.tonyamoyal.com/2010/09/29/rails-authentication-with-devise-and-cancan-part-2-restful-resources-for-administrators/
and you are good to go. :)
On Tue, Jun 14, 2011 at 5:43 AM, Fernando Aureliano <
m...@fernandoaureliano.com> wrote:
> Someone already need to list the regis
Hello All
I have too many scanned notes i need to convert them into text and then user
may download that as pdf , How it can be done in RoR
Please help
Thanks in advance :)
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To view th
The form appears, I put the data and go!
Dont show any erros, but the data are not recorded
On Mon, Jun 13, 2011 at 10:27 PM, Tim Shaffer wrote:
> Which part doesn't work?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To view
Hi,
I am writing this code in purpose that i can i select image from the
picture table and i want to get all the user so i can loop through
user1 , user2
and display the pic on bowers..
def show_image
@id = User.find(:all, :select => 'user.id')
for id in @id
@image = Act
Which part doesn't work?
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/rubyonrails-talk/-/m5PzyPsORQ4J.
To post to this group, send email to rubyonrails-talk@goog
Sorry, I mean get the list of user id ...
cuz my query depends on user.id .. so i want to have a list which is array
to go through
the album..
On Mon, Jun 13, 2011 at 1:53 PM, Michael Pavling wrote:
> On 13 June 2011 18:33, Yennie wrote:
> > @id = User.find(:all, :select => 'users.id')
>
Someone already need to list the registrations of user from devise?
I want to do this list, with the option of admin delete users.
I did not found nothing about that on documentation =/
--
*Fernando Aureliano*
--
You received this message because you are subscribed to the Google Groups "Ru
Dont work.
maybe because I'm already logged in when I try a new register?
On Mon, Jun 13, 2011 at 2:35 PM, Tim Shaffer wrote:
> Same way you'd display the form any other place I'd imagine...
>
> <%= form_for(User.new, :as => :user, :url => registration_path(:user)) do |f|
> %>
> <%= devise_e
Excuse me, i have a typo in the text. What i was trying to say is that
anything I include in the session (within the POST request) is NOT propagate
to the next requests.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To view this discu
Guys, i'm having a problem similar with those reported with rails 3.0.4 and
sessions with ajax requests.
The problem is that i have an action that receives an ajax POST and sets an
session.
def test
session[:user] = me
end
but the session vanishes and don't become available in the next
Awesome - perfect. Thanks!
Best Wishes,
Peter
On Jun 13, 2011, at 6:11 PM, Martin Wawrusch wrote:
> errors.add(:base,"your text")
> perhaps?
>
> On Mon, Jun 13, 2011 at 3:08 PM, Peter Bell wrote:
> Hmm, So it looks like erros.add_to_base is deprecated in ActiveModel:
> http://api.rubyonrails.
errors.add(:base,"your text")
perhaps?
On Mon, Jun 13, 2011 at 3:08 PM, Peter Bell wrote:
> Hmm, So it looks like erros.add_to_base is deprecated in ActiveModel:
> http://api.rubyonrails.org/classes/ActiveModel/Errors.html
>
> I need to add an error, but I don't want to add it to a specific prop
Hmm, So it looks like erros.add_to_base is deprecated in ActiveModel:
http://api.rubyonrails.org/classes/ActiveModel/Errors.html
I need to add an error, but I don't want to add it to a specific property (I
need you to fill out either a source_person or source_url, so I don't want to
prepend the
I have a Web Developer position available with the * Arlington, VA*. Please
let me know if you have anyone in mind.
Below is the JD.**
**
*Web Developer Technical Experience:** **
**- Experience developing and designing large, customer-facing websites** **
**- Expert skills in HTML, table-less CSS
Hello everyone,
I am new to rails and I am having some trouble getting the Devise
authorization plugin working. I can get the login page to display, but
when I enter the credentials for a known user (I seeded an account to
the database) it just says "Invalid email or password," even though
I'm 100%
On Jun 13, 1:22 pm, daze wrote:
> Thank you. But then what should be the work around for this with
> Capybara? I was leaning toward using capybara...
rendered.should have_selector("form input[@type='submit']")
You can also use assert_select which ships with Rails and supports
nesting if you p
Happy Monday Everyone,
Would you kindly help out a struggling nuby in solving this problem? I
have been researching all over, yet to find a workable solution.
Situation: A model [Announcement] that accepts nested attributes
[Recipients] via many_to_many :through => :awards relationship.
The Desi
Thank you. But then what should be the work around for this with
Capybara? I was leaning toward using capybara...
Actually, do you recommend webrat over capybara? I just want one with
good documentation and stick with one for the sake of getting used to
the syntax.
Now... One last thing. I no
On 13 June 2011 18:33, Yennie wrote:
> @id = User.find(:all, :select => 'users.id')
> @id.each do |i|
> @pic = ActiveRecord::Base.connection.select_value(
> select picture
> from albums a
>
Same way you'd display the form any other place I'd imagine...
<%= form_for(User.new, :as => :user, :url => registration_path(:user)) do |f| %>
<%= devise_error_messages! %>
form fields here...
<%= f.submit "Sign up" %>
<% end %>
--
You received this message because you are subscribed to
Hi,
I have a question that how to take a list of user on user table
def show_pic
@id = User.find(:all, :select => 'users.id')
@id.each do |i|
@pic = ActiveRecord::Base.connection.select_value(
select picture
from albums a
On Jun 13, 8:36 am, daze wrote:
> I'm going through The RSpec Book, and (specifically around page 333) I
> encountered a problem. Basically, whenever I use "should
> have_selector" in a nested form, it silently passes when it SHOULD
> fail.
>
> I've been copying the code exactly as from the book.
Dear Associate,
This is Eric Hoffman from Panzer Solutions LLC, Let me know if you suitable
consultant for below position. If so, send me your updated resume and
contact details.
*Position: QA Analyst
Location : Indianapolis, IN
Duration: 12 months*
*Rate: $35/hr*
Candidates HAVE to have severa
Hi,
Moved the authenticate method to the helper, after looking at the sample
app code from github. This seems to have solved the problem.
Thanks,
Jen.
On 13/06/11 14:49, Simon Baumgartner wrote:
Are you including SessionsHelper in you ApplicationController ?
class ApplicationController< Acti
Are you including SessionsHelper in you ApplicationController ?
class ApplicationController < ActionController::Base
protect_from_forgery
include SessionsHelper
end
Simon
On Jun 12, 3:43 pm, Jen wrote:
> Hi everyone,
> I'm working through the tutorial at the following link and attempting to
The error message is pretty clear - You haven't defined a current_usermethod in
your helper.
Check out Listing 9.16 in that tutorial you posted. That's where it
describes the current_user method you need to add.
http://ruby.railstutorial.org/chapters/sign-in-sign-out#code:current_user_working
I'm going through The RSpec Book, and (specifically around page 333) I
encountered a problem. Basically, whenever I use "should
have_selector" in a nested form, it silently passes when it SHOULD
fail.
I've been copying the code exactly as from the book. Now, there is
one major difference - I'm u
Investigate javascript grids - there is a growing collection of both
free and pay-for clieent side grid frameworks available :)
Extjs
Jquery grid
Are two that come to mind.
Max
On 6/13/11, sar_dev wrote:
> Hi
>
> I need to create a single page spreadsheet web application in RAILS
> which shoul
I have a Rails 2 app using ssl_requirement plugin. Is it possible to
force HTTPS in any controller with one statement, instead of defining
the actions in any controller? \
i.e. ssl_required :all => :force
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails
Hi
I need to create a single page spreadsheet web application in RAILS
which should be exactly like google doc(should not use google docs
API). It should have the following features
1) should scroll from row to row/ cell to cell using arrow keys and
also want to copy and paste from cell to cell .
On 13 June 2011 11:43, Mauro wrote:
> On 13 June 2011 07:35, Colin Law wrote:
>> On 12 June 2011 23:46, Mauro wrote:
>>> I have:
>>> check_box_tag "supplier[category_ids][]",
>>> category.id,@supplier.categories.include?(category).
>>> I want to include @supplier.categories.include?(category) on
On 13 June 2011 07:35, Colin Law wrote:
> On 12 June 2011 23:46, Mauro wrote:
>> I have:
>> check_box_tag "supplier[category_ids][]",
>> category.id,@supplier.categories.include?(category).
>> I want to include @supplier.categories.include?(category) only if
>> @supplier is not nil.
>
> Have you
Thanks for your reply Andrew. Your answer saved me from googling a little
bit more.
I'll have a look to the quick fix.
If you need more details let me know.
Thanks
On Sun, Jun 12, 2011 at 11:14 PM, Andrew France
wrote:
> Hi Federico,
>
> Ruport is not currently Ruby 1.9.2 compatible, sorry. I st
On Thu, Jun 9, 2011 at 6:16 AM, tashfeen.ekram wrote:
> just to make sure i dunerstood this. so to optimize ranking, when
> soeone types in xxx.com it should be routed to www.xxx.com at the
> level of the http server?
>
>
yes, you are right.
> On Jun 2, 5:10 am, Chris Kottom wrote:,
> > Yes, im
Sure. Is there anything I need to do for that?
On Mon, Jun 13, 2011 at 11:42 AM, Satish N Kota
wrote:
> Cool and congrats...would you like this to go on IndiaRubyConsortium?
>
> Thanks and Regards
> Satish Kota
> Administrator, IndiaRubyConsortium
>
>
> -Original Message-
> From: bangal
On 13 June 2011 08:05, seeni khan wrote:
> Hi All,
> I am using rails2.3.4 version ruby version 1.8.7 for my product.My client
> suggest me to apply if any security patches (security needs to be fixed in
> rails 2.3.4 & ruby 1.8.7) available. I dont know where and how should i find
> it.Please sug
On 12 June 2011 23:46, Mauro wrote:
> I have:
> check_box_tag "supplier[category_ids][]",
> category.id,@supplier.categories.include?(category).
> I want to include @supplier.categories.include?(category) only if
> @supplier is not nil.
Have you tried
(@supplier.categories.include?(category) if @
If you want deep copy you should use Marshal:
class Hash
def deep_dup
Marshal::load(Marshal::dump(self))
end
end
foo = {:b=>{:c=>{:d=>1}}}
bar = foo.deep_dup
foo[:b][:c][:d] = 2
p foo # => {:b=>{:c=>{:d=>2}}}
p bar # => {:b=>{:c=>{:d=>1}}}
On 13 июн, 07:21, gerbdla wrote:
> Hi not sure
Hi All,
I am using rails2.3.4 version ruby version 1.8.7 for my product.My client
suggest me to apply if any security patches (security needs to be fixed in
rails 2.3.4 & ruby 1.8.7) available. I dont know where and how should i find
it.Please suggest me an idea or anyone knows any security patches
41 matches
Mail list logo