Displaying 20 results from an estimated 1400 matches similar to: "When overriding the registration controller from devise, is it possible to access the newly created"
2012 Jan 26
0
Show action with Devise
Hi, Devise has edit and new views for registrations, I''d like to add a show
view to display that information.
How can I do that?
If I overwrite the controller RegistrationsController <
Devise::RegistrationsController, it says: "Missing template
registrations/show, ...", but I want to render the view that is inside
users/registrations (the generated view for "rails
2010 Nov 12
1
Devise after_sign_up_path_for - how to?
Hi,
I''m new to devise and I''m having a problem overwriting a controller.
After sign-up I want the user to go to a static page.
In the controllers folder I have created
users/registrations_controller.rb
class Users::RegistrationsController < Devise::RegistrationsController
def after_sign_up_path_for(resource)
puts "If I coould see this..."
2013 Oct 04
8
is there any way to convert .xlsx to .xls
Hello Guys, does anybody know if there''s anyway to upload a .xlsx file and
then convert it to .xls file for later processing?
i''d like to use spreadsheet to write a new xls file but it doesn''t support
xlsx and the file is only importable with that format sadly.
I saw roo but I don''t know if there''s a direct way to do it.
--
You received this
2011 Aug 09
2
Devise AssociationTypeMismatch
My site is using Devise and Cancan. Currently I have 3 roles setup
I am testing creating a new user using the following command (role is
required):
curl -H "Content-Type:application/json" -H "Accept:application/json" -
d "{\"user\":{\"email\":\"test01-J0of1frlU80@public.gmane.org\", \"role\":\"2\", \"name\":
2010 Aug 19
0
Rails - Devise - Warden and InvalidAuthenticityToken
Hi
I''ve just uploaded my new website to my server and, after a couple of
teething problems, seem to be hitting problems when I am using devise
and warden to authenticate users etc.
The following is the error message with sensitive information removed:
Processing RegistrationsController#create (for 81.111.90.194 at
2010-08-19 21:35:43) [POST]
Parameters:
2013 Oct 08
6
Consuming a web service created with Rails, ETL vs Rest?
Hello, I need to consume a web service of an App called RedMine created
with Rails, in order to have a sort of "separate" interface (not the same
as the app) for one of the departments (that interact with the app) to
interact with it and generate some different reports based on the same data.
I don''t know much about either (ETL and Rest), all I know is that ETL seems
to
2010 Dec 17
1
flash[;notice] not display after redirection
I read all previous posts about the same subject in Devise group but
couldn''t find any answer, so iy may not be related to Devise , so
I debugged it ..
.
class Users::RegistrationsController <
Devise::RegistrationsController
..
# POST /resource/sign_up
def create
build_resource
if resource.save
if resource.active?
set_flash_message :notice, :signed_up
2012 May 17
0
Two layouts in one mailer
Hi all,
I''m having problems figuring out how to know which mailer method is being
invoked in the layout callback.
In my controller, I have code like this and its working great:
class Users::RegistrationsController < Devise::RegistrationsController
layout :devise_or_application
def devise_or_application
["edit", "update",
2011 Jul 14
10
Devise confusing routes
I had a similar problem yesterday.
I would go to the root of my site and I would get a Too Many Redirects
message. It seems like there was an infinite loop. After struggling for
over an hour yesterday late at night, it seemed like I fixed it.
But now, when I want to create a New User, it''s redirecting me to the
Sign In screen. Seems like I didn''t fix the problem completely.
I
2012 Dec 12
1
Devise route for confirmation error with :locale
Rails 3.1.3
I have setup devise and i18n . In routes.rb
scope "/:locale" do
devise_for :users, :controllers => { :registrations =>
''registrations'' }
...
end
But in the process of confirmation,
No route matches {:action=>"create",
:controller=>"devise/confirmations",
2013 Oct 10
12
What's the best way to approach reading and parse large XLSX files?
Hello, I''m developing an app that basically, receives a 10MB or less XLSX
files with +30000 rows or so, and another XLSX file with about 200rows, I
have to read one row of the smallest file, look it up on the largest file
and write data from both files to a new one.
I just did a test reading a few rows from the largest file using ROO
(Spreadsheet doesn''t support XSLX and
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
2006 Feb 15
6
error_messages_for trouble
I am trying so learn how to do custom validations.
The validation works as expected, but I can''t get "error_messages_for"
to display.
How is the name of the object supposed to be formated?
Where is this object created, the model or controller?
What am I doing wrong here?
#### Model ########################
class MyFolder < ActiveRecord::Base
def validate
# validation
2014 Apr 21
0
Unpermitted Parameters - Rails 4
Hi,
I'm using Devise (3.2.4), Rails 4 and I'm trying to signup.
I have a Registration Controller where i do have:
"
def sign_up_params
params.require(:user).permit(:email,:first_name,
:last_name,:mobile, :birthday, :current_password,
:password,:password_confirmation)
end
"
and everytime i try to sign up I get the following message:
Processing by
2013 Nov 06
5
Is it possible with Rails to interact with SVN Server and/or the server's shell?
Hello! I''m fairly new to Ruby and Rails, and currently I don''t have any
knowledge on interacting with the server''s shell or a SVN server, but now I
have to develop an app where admins allow/restrict access to files and
folders from the app and some sort of version control of the files is need
so I thought, to install a SVN server also and from the app allow users to
2013 Jun 25
6
creating an account with a username in devise
Hello, all. I have followed these links and have enabled a (current)
user to login with a username:
http://railscasts.com/episodes/209-introducing-devise
http://railscasts.com/episodes/210-customizing-devise
https://github.com/plataformatec/devise/wiki/How-To:-Allow-users-to-sign-in-using-their-username-or-email-address
I want to allow a user to sign up with a username but am getting these
2005 Aug 28
2
Feature Request - wild idea - folders for executing programs
Timo,
I have a wild idea for a feature that is somewhat unusual, would be very
powerful, and easy to implement. What I want is ...
Special folders that when someone drags a message into them - it pipes
the message into a program.
The reason I want this is - for example - reporting of spam. Suppose you
want everyone to have a spam-missed folder so that if a spam gets
through then the user
2003 Dec 24
0
Re: myob
Nic,
Have you read the chapter in file and record locking in the
Samba-HOWTO-Collection?
http://www.samba.org/samba/docs/Samba-HOWTO-Collection.pdf
You need to disable oplock support on the share.
oplocks = False
level2 oplocks = False
Chapter 14 of the HOWTO also documents Windows registry settings you may
have to set in order to protect the MYOB files.
Above all, make certain that your
2017 Aug 23
0
Error "translateCharUTF8' must be called on a CHARSXP Execution halted"
On 23.08.2017 12:02, Braun, Stefan wrote:
> Dear list,
>
> I installed R 3.3.2 on a Red Hat Linux Enterprise 7.3 machine by adding the EPEL-repository and then installing it via yum.
> R starts up and seems to be doing fine at first sight. However, when I try to list the files in a directory with the command
>
> files <-
2017 Aug 23
2
Error "translateCharUTF8' must be called on a CHARSXP Execution halted"
Dear list,
I installed R 3.3.2 on a Red Hat Linux Enterprise 7.3 machine by adding the EPEL-repository and then installing it via yum.
R starts up and seems to be doing fine at first sight. However, when I try to list the files in a directory with the command
files <- list.files(path="/home/username/directory_name/", pattern="*.Rda",, full.names=T, recursive=FALSE)
I get